Doing all my editing in Vim I thought for some time whether to switch to NeoVim ↗. A few days ago I finally decided to do the switch. The result is awesome.
Here are my reasons to use NeoVim.
- highlighting (via incremental syntax tree)
- support for custom code snippets ↗
- revert local changes via undotree ↗
- good support for LaTex ↗ and Git ↗
- quick fuzzy search for files or contents navigation ↗
- LSP support ↗
:checkhealthtells you what is wrong (missing dependencies, old versions, etc.)
My current setup is available at https://github.com/vaclavblazej/nvim ↗. Installation on Ubuntu goes like this.
- (optionally) set
~/.bashrcfor bash users).
For more details, see the tutorials mentioned above.
I just note some things that would make my transition little smoother.
- Obviously, you need to install
neovim. Some errors or comments may mention that a program is missing, then install it as well.
- NeoVim configuration lives in
~/.config/nvim/. (Vim config is traditionally in
- NeoVim config entry file is
init.vimfor just copied old config). (Vim config is traditionally in
- All files (e.g.
.config/nvim/luacan be requested by other script files by
- Files in
.config/nvim/afterfolder are loaded automatically.
- It is important to load
lazyafter setup of key remaps as otherwise leader key may be old for plugin commands.
lazyplugin manager downloads the plugins on startup. Otherwise just pull it up with