From f0f016c25899689cc8b7f514ee2629a62cb78d19 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 19 Feb 2014 12:57:34 -0600 Subject: [PATCH] Add new vim plugin for vim runtime info in command prompt --- plugins/vim/vim.plugin.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/vim/vim.plugin.zsh diff --git a/plugins/vim/vim.plugin.zsh b/plugins/vim/vim.plugin.zsh new file mode 100644 index 000000000..4e16ebee3 --- /dev/null +++ b/plugins/vim/vim.plugin.zsh @@ -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 +}