↧
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 ArticleDetermine 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