up vote 6 down vote favorite
3
share [g+] share [fb]

In my .vimrc, I want to check if I'm in MacVim vs. regular vim so I can optionally set some MacVim-specific settings, which should not be applied to regular vim.

How do I do this?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 8 down vote accepted

I just found one way to do it:

if has("gui_macvim")
    " set macvim specific stuff
endif
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.