On 21-Nov-2009 Mark Manning <[email protected]> wrote: > > I was wondering if there is a list anywhere on all of the $<VARIABLES> > which VIM has. For instance, if you do a help on $VIM (i.e.: :h $VIM) > you get information on the $VIM variable. But if you do the same for > $OS you get an error. > > However, if you do > > :echo $OS > > Vim comes back with what operating system you are currently running > under.
No, it doesn't. Such variables are environment variables and Vim does not "have" them. It gets them when it is started, uses a few of them (namely, $VIM, $VIMRUNTIME and $VIMINIT) and makes another two available to processes it spawns: $MYVIMRC and $MYGVIMRC. If :echo $OS gives you back your OS name, it means you have a variable "OS" set in your environment. In mine there is no such variable and I get a blank line. By the way, I believe that the vim-use mailing list would be a more proper place for this type of questions in the future. This is vim-dev where issues regarding Vim development and bug reports tend to be discussed. -- HTH, Lech --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
