
Vim tips: Working with external commands
Vim is a powerful editing tool, but there are some things it just can’t do. However, Vim lets you access shell commands and utilities without leaving Vim, and that lets you perform some amazing tricks. If you run :shell or just :sh while you’re in the editor, Vim (or Gvim, if you’re partial to Vim’s GUI) will place you in an interactive shell. You can run whatever commands you want, and resume your Vim session by exiting the shell....