Add new vim plugin for vim runtime info in command prompt

This commit is contained in:
Charles Harris 2014-02-19 12:57:34 -06:00
commit f0f016c258

View file

@ -0,0 +1,8 @@
#check if we've shelled out from within vim
#if VIMRUNTIME is set, it's likely the shell we are
# in was started from vim.
function shell_from_vim() {
if [[ -n $VIMRUNTIME ]]; then
echo 'vim';
fi
}