mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Add new vim plugin for vim runtime info in command prompt
This commit is contained in:
parent
b99778edd3
commit
f0f016c258
1 changed files with 8 additions and 0 deletions
8
plugins/vim/vim.plugin.zsh
Normal file
8
plugins/vim/vim.plugin.zsh
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue