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
  • 34,719
  • 24
  • 185
  • 251
SWilk
  • 3,041
  • 7
  • 27
  • 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
  • 24,318
  • 34
  • 129
  • 277
Yin Zhu
  • 16,836
  • 13
  • 70
  • 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
  • 173,492
  • 58
  • 311
  • 399
0

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

set compatible