How do you run a shell command from within Vim?
Answer
:!ls
Explanation
Use :! followed by any shell command. :!ls lists files, :!python % runs the current file with Python. Vim pauses until the command completes.
:!ls
Use :! followed by any shell command. :!ls lists files, :!python % runs the current file with Python. Vim pauses until the command completes.