May 2018
Intermediate to advanced
168 pages
4h 2m
English
| 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. ...