Tip 17 | Managing Windows That Contain Terminal Buffers |
Neovim’s splits and tab pages can display terminal buffers in just the same way that they display regular text buffers. That opens up a new possibility: you can use Neovim as a simple window manager not just for text files, but for any programs that you can run in a terminal.
Open up a simple text file in Neovim:
=> | $ cd code/terminal/ |
=> | $ nvim readme.md |
Now open a new terminal buffer running your shell:
=> | :terminal |
Notice that the :terminal command takes over the current window, and the buffer containing readme.md is hidden. This is similar to how the :edit {file} command works. ...
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.