vimtricks.wiki Concise Vim tricks, one at a time.

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.

Next

How do I visually select a double-quoted string including the quotes themselves?