Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 742
SWilk Avatar asked Jan 19 '10 13:01

SWilk


People also ask

Is Gvim and vim same?

Both GVim and Vim are the same, the difference is that Gvim offers an interface that doesn't run in a terminal window. Basically, Gvim has GUI-like menus and toolbar. Here are quotes from Quora that provide more information: VIM is designed for using the keyboard efficiently and not for using the mouse.

How do I open Gvim files on Windows?

I run gVim by clicking an icon on my desktop or by using "edit with vim" from the context menu in Windows explorer. Show activity on this post. get the Gvim executable and install on the required system. This worked perfectly for me!


2 Answers

in c:\program files\vim\_vimrc:

" source $VIMRUNTIME/mswin.vim
" behave mswin

Comment out these two lines

like image 59
Yin Zhu Avatar answered Oct 03 '22 23:10

Yin Zhu


Issue the following commands:

set compatible
:mkvimrc!

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

like image 29
Paul Tomblin Avatar answered Oct 03 '22 21:10

Paul Tomblin