Thursday, August 23, 2012

Re: how to disallow gvim to load some settings from .vimrc file

On 02:36 Fri 24 Aug , Santosh Kumar wrote:
> I have this line in my .vimrc file:
>
> highlight SpellBad ctermfg=000 guifg=#000
>
> I don't want to be loaded by gvim (i.e. only vim).
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

You can enclose the code in the following if clause:
if !has("gui_running")
...
endif

Best,
Marcin

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment