Thanks Bjorn, that's exactly what I needed! (Was trying to detect both if and what gui vim was running in so that I could do some custom things on each platform/environment.)
- Tyson On Sat, Oct 10, 2009 at 12:02 AM, björn <[email protected]> wrote: > > 2009/10/9 Tyson Roberts: > > How does one go about detecting whether vim was executed from within > > MacVim/gvim/in a command terminal? > > > > I'm trying to come up with a robust, relocatable vimrc framework at this > > point, now that I'm working on windows/mac/linux simultaneously. > > > > Also, anyone know a simple test to see if a g:fred variable has been > defined > > or not? I'm having trouble with that one (and kind of embarrassed I > haven't > > found the answer after all these years). -_- > > Hi Tyson, > > I'm not sure this is what you are looking for, but have you tried > > if has("gui_macvim") > ... > > The help on ":h feature-list" and ":h has()" may be of help. > > Björn > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
