Vim: Configure automatic line wrapping?

Created on 3 Jan 2017  路  5Comments  路  Source: VSCodeVim/Vim

  • Click thumbs-up 馃憤 on this issue if you want it!
  • Click confused 馃槙 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


What did you do?

Go to the end of a line and press the right arrow key (or l) in normal mode.

What did you expect to happen?

By default I don't expect the line wrapping to work but a config option to enable whichwrap style behavior would be great.

What happened instead?

Automatically move up or down a line with arrow keys in normal mode, if configured.

Technical details:

  • VSCode Version: 1.8
  • VsCodeVim Version: latest
  • OS: Win 10
kinfeature

Most helpful comment

All 5 comments

@xconverge Really sorry I missed your comment, yes that is exactly what I'm looking for.

This issue was created when https://github.com/VSCodeVim/Vim/issues/839 was implemented.

This is a feature I miss from Vim and I personally find it really useful. Just stopping at the end of a line when using cursors just feels so alien.

I would like to tackle this an provide a pull request, if somebody could point me into the right direction. The original patchset is not linked in #839.

The workaround that I am using is to disable Vim extension鈥檚 handling of Left and Right keys when inside Insert Mode:

{ "key": "left",                  "command": "cursorLeft",
                                     "when": "textInputFocus" },
{ "key": "right",                 "command": "cursorRight",
                                     "when": "textInputFocus" },
{ "key": "left",                  "command": "extension.vim_left",
                                     "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'" },
{ "key": "right",                 "command": "extension.vim_right",
                                     "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'" },
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaredly picture jaredly  路  3Comments

typeoneerror picture typeoneerror  路  3Comments

gerardmrk picture gerardmrk  路  3Comments

waltiam picture waltiam  路  3Comments

Jimmy-Z picture Jimmy-Z  路  3Comments