O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Terminal mode

Terminal mode came to Vim in version 8.1, and it allows you to run a Terminal in a split window. You can enter terminal mode by typing the following:

:terminal
You can shorten the command to :term.

This will open your system's shell (your default shell in Linux, or cmd.exe in Windows) in a horizontal split:

This is a wrapper around your system's Terminal, which lets you work with your shell as you normally would. This window is treated similarly to any other window (you can navigate between split using Ctrl + w commands), but the window is effectively locked into insert mode. You may also want to consider using tmux or a screen ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required