1.

How Do I Run A Program From Within Vi?

Answer»

:!cmd will run the program cmd. :sh will run an INTERACTIVE shell. Within this shell, you may, if you want, run vi again. This is particularly useful when you are EDITING makefiles and config files for programs in an ATTEMPT to GET a program to compile. The advantage over :e is that you do not need to save the file, and it will be in its old PLACE when you exit the shell.

:!cmd will run the program cmd. :sh will run an interactive shell. Within this shell, you may, if you want, run vi again. This is particularly useful when you are editing makefiles and config files for programs in an attempt to get a program to compile. The advantage over :e is that you do not need to save the file, and it will be in its old place when you exit the shell.



Discussion

No Comment Found