There seems to be two ways to store preferences specific to gvim:
Keep an
.vimrc
file for vim and a.gvimrc
file for gvim specific additions.Keep all settings in
.vimrc
and wrap gvim specific settings in a feature detection conditional:if has('gui_running') " gvim specific settings here endif
Given the existence of the latter option, why would I ever need a .gvimrc
file?
winpos
which changes the position of the window used by gvim. This has no effect (and makes no sense) within~/.vimrc
, it has to be in~/.gvimrc
– jalanb Feb 6 '15 at 0:02