Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim: how to call alias through the ':!' directive? [duplicate]

Tags:

vim

Possible Duplicate:
Commands executed from vim are not recognizing bash command aliases

I've made an alias called "cache": alias cache="[shell command]"

Using vim, I'd like to call this alias through the ':!' directive, but I just can call "standard" commands like 'date' and so on?

How is it possible to make vim use my shell aliases?

like image 559
Olivier Pons Avatar asked Oct 21 '11 12:10

Olivier Pons


1 Answers

Actually the suggested answer in the possible duplicate question didn't work for me. I currently use the following:

set shell=/bin/bash\ -i

It works fine.

like image 100
lucapette Avatar answered Nov 19 '22 19:11

lucapette