Is there a way to run my zshell aliases inside vim, with the output going to a new split?
I'm using oh-my-zsh's git aliases like gst
, and I am unable to do :!gst
inside vim.
Thanks
Is there a way to run my zshell aliases inside vim, with the output going to a new split?
I'm using oh-my-zsh's git aliases like gst
, and I am unable to do :!gst
inside vim.
Thanks
Try
:set shell=zsh\ -l
And put the alias setting to
~/.zshenv
Here is the similar question terminal vim not loading .zshrc.
@tim-green is right!
As the man page says:
Since you don't want interactive shell in vim (using
!
at least), your only solution is to add (orsource
) your aliases inside~/.zshenv
.As simple as that!
EDIT: no other modification is required, except to put:
in your vimrc.