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 22Using an Existing nvim Instance as the Preferred Editor
images/neovim-only.png

Some command-line programs may invoke a text editor so that the user can compose a message. By convention, the $VISUAL environment variable is used to specify the users’ preferred text editor. If you configure nvim as your preference, then it’s easy to accidentally launch nested instances of Neovim. It’s preferable if you can use an existing instance of Neovim, rather than starting a new one. You can set this up using neovim-remote.

Preparation

Command-line programs that require input from the user may give the option of opening a temporary file in a text editor. When you save and ...

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