tags:

views:

416

answers:

4

Hi,

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?

+2  A: 

in c:\program files\vim\_vimrc:

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

try to rename or delete this file.

Yin Zhu
+2  A: 

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

set compatible
anon
A: 

Issue the following commands:

set compatible
:mkvimrc!

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

Paul Tomblin
A: 

It's somehow a duplicate of this question: http://stackoverflow.com/questions/289681/why-does-c-a-ctrla-not-work-under-gvim-on-windows

Use the tags, it help a lot to find solutions to our problems => I add the "windows" tag to this question.

Luc Hermitte