Tip 18Using Normal Mode Commands in a Terminal Buffer
images/neovim-only.png

Most Normal mode commands work in terminal buffers just as they would in regular text buffers. In this tip we’ll run through some examples of the commands that are useful in this context.

Preparation

The source code that accompanies this book includes a terminal directory. Switch to that directory, then start Neovim with a terminal buffer:

=> $ cd code/terminal
=> $ nvim +terminal

This last command is equivalent to running nvim to launch Neovim, then running the :terminal Ex command after Neovim has launched (see :h -+c). The examples throughout this tip should be run within this internal ...

Get Modern Vim now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.