I have g++ alias defined in my
.bashrc file as
alias g++='g++ -Wall -DLOCAL=1'
I am invoking following command from vim command/normal mode to compile a program -
The issue is, this command is working, but this is not picking the alias that's defined in bashrc file. It appears vim is invoking the original g++. To be precise, it looks like vim is not executing the command in current shell/env setup.
When I run
g++ file.cpp from bash commandline the alias is being picked up correctly.
Ofcourse I can dump the entire required command in the command mode, but I would like vim to pickup the alias defined in
Any way to achieve this?