In .vimrc, I can test whether I am loaded in GVim by testing for has('gui_running'). Is there a similar feature flag that VsVim uses so I can test whether VsVim is currently running?
The reason is that there are some mappings that I use in regular Vim that cause problems when run within VsVim and so I'd like to avoid loading them when run inside VsVim.
For now, I found a workaround by using a
~/.vsvimrcfile. I just set ahas_vsvimvariable in.vsvimrc, then source my normal.vimrcfile, in which I can check for thehas_vsvimflag.~/.vsvimrc:
~/dotfiles/.vimrc