I have a number of aliased commands in my .bashrc and they work fine on the command line. However, if I use them in Vim, they do not work. For example:
:!mycommand
results in:
/binbash: mycommand: command not found
What is the explanation?
I have a number of aliased commands in my .bashrc and they work fine on the command line. However, if I use them in Vim, they do not work. For example:
:!mycommand
results in:
/binbash: mycommand: command not found
What is the explanation?
viminvokes shells (e.g. requested by!orsystem()) as non-interactive and non-login shell, which means.bashrcor.zshrcare not read. You could try making it interactive by setting'shellcmdflag'to"-ic". – Hotschke Nov 17 '18 at 14:16