Tip 22 | Using an Existing nvim Instance as the Preferred Editor |
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 ...
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.