On 23, اگست 2012, at 18:05, Marcin Szamotulski <[email protected]> wrote:

> 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 may also want to take the guifg bit out. It only has an effect if the GUI 
is actually running, when you won't execute the code anyway. 

Salman

-- 
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

Reply via email to