On Thursday, August 23, 2012 5:29:40 PM UTC-5, Salman Halim wrote:
> 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

For that matter, if you just leave out the guifg bit, you can go ahead and 
execute it in the gui and it should have no effect.

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