20

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
SWilk
  • 3,261
  • 8
  • 30
  • 51
  • 1
    Once I had a _vimrc in my Documents folder the default _vimrc was not sourced anymore and vim behaved like I wanted it to. Even an empty one was enough. – Nikodemus RIP Nov 13 '15 at 13:24

3 Answers3

15

in c:\program files\vim\_vimrc:

" source $VIMRUNTIME/mswin.vim
" behave mswin

Comment out these two lines

leeand00
  • 25,510
  • 39
  • 140
  • 297
Yin Zhu
  • 16,980
  • 13
  • 75
  • 117
  • 3
    I just commented out the last two lines (source .../mswin.vim and behave mswin). This seems to break fewer of my other configuration options while still not clobbering the controls. – Tim Swast Mar 01 '12 at 22:04
1

Issue the following commands:

set compatible
:mkvimrc!

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

Paul Tomblin
  • 179,021
  • 58
  • 319
  • 408
0

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

set compatible