Use set selectmode= to disable select mode in Vim

Today I was using Vim and noticed that, while in insert mode, using <Shift-up|down|left|right> would cause Vim to go into select mode. Then, when I did a <Ctrl-c> to copy, <Ctrl-p> would not paste (I guess Windows key copy and paste do not work in select mode?).

Anyways, I was able to fix this problem by disabling selectmode all-together using:

set selectmode=

In the documentation it only gives key, cmd, and mouse and it took me awhile to figure out if you set it to nothing (NONE did not work) it will not enter select mode on either of these events.

This (and many other new things) will be present in 0.0.2 version of Aubrey’s gVim.

Leave a Reply

Your email address will not be published.