Quantcast
Channel: Determine if a bash script is called within vim - Vi and Vim Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Matt for Determine if a bash script is called within vim

Usually it is okay just to test environment variables, such as $VIM or $VIMRUNTIME (or even $MYVIMRC, although the latter is not guaranteed to exist). This is very easy and portable.But, of course, you...

View Article



Determine if a bash script is called within vim

Is there a way for a bash script to determine if it's being run from within vim?I'm writing a small bash script that is only useful if called within vim. I'd like to assure that it only does its thing...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images