Skip to Content
Modern Vim
book

Modern Vim

by Drew Neil
May 2018
Intermediate to advanced
168 pages
4h 2m
English
Pragmatic Bookshelf
Content preview from Modern Vim
Tip 21Avoiding Nested Neovim Instances
images/neovim-only.png

Any command that you can launch in an external shell can also be run in a terminal buffer. That includes the nvim command itself, meaning you can start a new instance of Neovim inside an existing instance. This scenario is best avoided. In this tip, you’ll learn how the neovim-remote tool allows you to open files in the existing Neovim instance. You’ll also see how to set up a shell alias to prevent you from accidentally creating nested instances of Neovim.

How Can Neovim Run Inside of Neovim?

Use this command to start a fresh instance of Neovim and start a terminal buffer inside:

=> $ nvim +terminal ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Vim Masterclass

Vim Masterclass

Jason Cannon
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 9781680506006Errata Page