Home » Questions » Computers [ Ask a new question ]

Vim Ignores Aliases

Vim Ignores Aliases

If I map a command in vim using something like

Asked by: Guest | Views: 64
Total answers/comments: 1
Guest [Entry]

"Vim 'ignores' your aliases because your shell is not in a 'mood' to parse your .bash_profile/.bashrc (you did not specify, where your aliases are defined) because it is not started as a login/interactive shell (read here to find out more about what is read when and for what reason).

So, you have several options:

Put the code you use in your pdflatex alias into a script and call that
vimrc: 'set shell=/bin/bash\ -l', put your aliases to .bash_profile
Call your shell as an interactive/login shell: :! bash -l -i -e 'pdflatex .'"