A.J.Mechelynck wrote:
Robert Hicks wrote:
I have never used a gvimrc. Does that get parsed by gVim only?
:Robert
Yes indeed. It is guaranteed to be sourced when gvim starts and not when
console Vim starts; and in gvim it is sourced later than the vimrc in
startup. Me I don't use a gvimrc either: rather than maintain two
different startup files, I put everything in my a vimrc, with, when
needed, constructs like the following:
if has("gui_running")
" any code here affects gvim but not console vim
else
" any code here affects console vim but not gvim
endif
This implies that I'm not going to start vim as the console version and
later type ":gui" to turn it into a GUI display. This isn't much of a
limitation, considering how I start Vim (and anyway on Windows each Vim
executable is either a console version or a GUI version but not both).
Best regards,
Tony.
Thanks Tony, I guess my next question is "how do I know?". How do I know
what commands are only going to to affect gvim? I guess I have to look
them all up?
:Robert