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?

1
  • 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. Nov 13, 2015 at 13:24

3 Answers 3

15

in c:\program files\vim\_vimrc:

" source $VIMRUNTIME/mswin.vim
" behave mswin

Comment out these two lines

1
  • 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 1, 2012 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

0

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

set compatible
4
  • 1
    set compatible is not linux standard Nov 13, 2015 at 11:03
  • @Nikodemus the question was asking what commands to issue on gvim on Windows. What is or isn't standard in Linux is irrelevant. Nov 13, 2015 at 12:37
  • @PaulTomblin: Actually, the question was "How make gVim work exactly like the default linux console version". Nov 13, 2015 at 13:21
  • @Nikodemus read it again. "How to make gvim ON WINDOWS work exactly like..." Nov 13, 2015 at 13:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.