How to make gvim on Windows behave exactly like linux console vim?

Viewed 13743

I have used Vim extensively on linux console, I am used to it's keyboard shortcuts, like Ctrl+V for vertical selection, and many others.

I have installed gVim for Windows on my computer at work, and I almost can't use it, as many of keyboard commands were redefined. The Ctrl+V pastes the text from clipboard instead of starting vertical selection for example...

How make gVim work exactly like the default linux console version, possibly with the default gentoo settings?

3 Answers

in c:\program files\vim\_vimrc:

" source $VIMRUNTIME/mswin.vim
" behave mswin

Comment out these two lines

Issue the following commands:

set compatible
:mkvimrc!

That will write out a _vimrc that overrules the one in \Program Files\vim

Edit your .vimrc file so that it contains only the line:

set compatible
Related