Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shell commands from vim

Tags:

shell

vim

What is the best approach of using shell commands from vim? I know about the possibility of !shell_command. But this doesn't know all commands e.g. export OSTYPE; make install So I have to run it outside vim. Is there better approach?

like image 747
xralf Avatar asked May 13 '11 17:05

xralf


1 Answers

I know this is a bit late, but my preferred approach is suspending the vim process (Ctrl+z). You return to your shell/bash command prompt.

Then execute whatever command(s) you like.

Return to vim by typing fg

like image 125
Chirayu Shishodiya Avatar answered Sep 23 '22 15:09

Chirayu Shishodiya