Fandom

Vim Tips Wiki

Make arrow keys work in visual mode under Windows

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 864 Printable Monobook Previous Next

created 2005 · complexity basic · version 6.0


On Windows, new users may notice that the arrow keys end visual mode rather than extending the selection.

If this happens, it is because of the behave mswin line in the default _vimrc installed on a Windows system.

The best solution is to simply remove this line from the global _vimrc, or to create your own _vimrc without it.

However, if you like most of the effects of behave mswin (see :help behave) and only want to "fix" the visual selection behavior, simply put this into your vimrc after the behave mswin:

set keymodel-=stopsel

ReferencesEdit

CommentsEdit

Also on Fandom

Random Wiki