Vim: Left and right arrow keys navigate past EOL and beginning of line in insert

Created on 5 Oct 2016  路  7Comments  路  Source: VSCodeVim/Vim


Please _thumbs-up_ 馃憤 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

In insert mode, use left and right arrow keys,

What did you expect to happen?

It should stop at the beginning and end of line

What happened instead?

The cursor wraps around to the next or previous line

Technical details:

  • VSCode Version: 1.5.3
  • VsCodeVim Version: master
  • OS: macOS Sierra

Most helpful comment

Is there a way to get the old behavior back, like vim's whichwrap setting?

All 7 comments

Am guessing this needs to be handled in handleSelectionChange() when e.kind === vscode.TextEditorSelectionChangeKind.Command.Keyboard

Any other suggestions for how this could be addressed?

This is a weird one. Yes, that's Vim's behavior, but it's equally reasonable to expect it to wrap like it does in VSCode. (Note Vintageous does the same thing.) I'm not too concerned here.

Sure I agree, I would wait for some arrow users to chime in though

This can get crazy with multicursor if one of the cursors happens to be on a shorter line than the others...

@xconverge that's okay! It's the fun of multicursor 馃槈

Apparently this has been fixed. Thanks to whoever fixed it. (We're not really sure who that was.)

Is there a way to get the old behavior back, like vim's whichwrap setting?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndersenJ picture AndersenJ  路  3Comments

ghost picture ghost  路  3Comments

rajinder-yadav picture rajinder-yadav  路  3Comments

triztian picture triztian  路  3Comments

st-schneider picture st-schneider  路  3Comments