jaredpar/VsVim — Issue #690: A tab gets inserted at the wrong place when Visual Assist is present
Author: Banger
Created: 2011-11-25 19:28:05+00:00
State: open

Sometimes when I insert a tab (character) in the text, the tab gets inserted further down the line. It is usually moved by one or two tabs (3 spaces in my case). This seems to only happen when I have Visual Assist enabled.

E.g.: In the following line
```if( Variable1 == Variable2 ) then FunctionCall();```

If I insert a tab between the _if_ and the opening parentheses, I may get this:
```if( V ariable1 == Variable2 ) then FunctionCall();```

Where the tab is inserted three characters further than the cursor. Or I may get this:
```if( Vari able1 == Variable2 ) then FunctionCall();```

Where it is inserted 6 characters further. Also sometimes (but much more rarely, I get the tab __before__ the the cursor is.

This is in a cpp file. Tab size=3, Indent size=3, "Insert spaces".
How often it happen, and even if it happens, seems to depend on the kind of line. In some lines, it does it every time.

PS: The example is not representative of the kind of line that does it. It was just to explain the behavior. One that seems to be happening very frequently is a line like this:
```static const int SOME_CONST = 3 ;```
If I try to include a tab around the equal sign (before or after) it does it easily.