Neovim: Difference between revisions

Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:


For Arch Linux, Install <code>neovim</code>, <code>python-pynvim</code> from Pacman and <code>neovim-plug-git</code> from AUR.
For Arch Linux, Install <code>neovim</code>, <code>python-pynvim</code> from Pacman and <code>neovim-plug-git</code> from AUR.
Nvim provides a appimage that can be used when installing non-system package is not allowed: [[https://github.com/neovim/neovim/wiki/Installing-Neovim Installing Neovim]]


I use [https://github.com/hbsnmyj/neoroedeer neoroedeer] for configuration. Link the init file to ~/.config/nvim/init.vim. Run <code>:PlugInstall</code> to install the plugins.
I use [https://github.com/hbsnmyj/neoroedeer neoroedeer] for configuration. Link the init file to ~/.config/nvim/init.vim. Run <code>:PlugInstall</code> to install the plugins.
Line 37: Line 39:
=== Vimline ===
=== Vimline ===


When writing text-based files, I use the following vim line to make vim break lines automatically. Use <pre>gq<location></pre> to perform a reformatting operation.
When writing text-based files, I use the following vim line to make vim break lines automatically.


<syntaxhighlight>
<syntaxhighlight>
vim: set tw=78 spell indentexpr=
vim: set tw=78 spell indentexpr=
</syntaxhighlight>
</syntaxhighlight>
Use <code>gq<location></code> to perform a reformatting operation.