Monday, March 28, 2011

Re: how to justify i'm in VIM or GVIM?

On 2011-03-28, G G wrote:
> hi, all
>
> when i write a vim script, how can i decide whether i'm in VIM or GVIM?
> i mean, i want different colorsceme setting for each.

if has("gui_running")
" Do stuff for gvim
else
" Do stuff for vim
endif

See

:help has()
:help feature-list

for more.

Regards,
Gary

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