Misc
In this chapter I'll mention some misc plugins that I recommend to adapt.
Basic IDE Functionalities
nvim doesn't provide all the expected functionalities of an IDE, plugins are here to close that gap.
Session Manager
I use auto-session. Other Session Manager's
Comment
Adds a comment operation
Last Place
Remembers the last place you edited a buffer.
Guess Indent
Guess the indent of the file and override the indent settings.
Auto Pairs
Adds closures for your pairs, for example when you type (
it make it ()
and put the cursor in the middle.
Auto Save
Auto saves the file when a text has been edited, don't worry about losing your data.
Trailing whitespace
Be a good programmer and don't leave junk for git.
Multi cursor
If you are already good with multi cursor, take that skill with you to nvim, if you don't consider to use macros instead.
Terminal in nvim
Enables an integrated terminal inside nvim.
pasta
Fix's the issues with vanilla paste of nvim.
Extras
Surround
Surround parts of your code with []
/()
/{}
, quickly
Undotree
Visualize your undo branches, never lose and redo/undo history again!
Unimpaired
Add pair mappings (][
) that fills natural.
vim-repeat
Extends dot-repeat action.
Todo Comments
Highlight TODO
comments, populate quickfix list with all the todo comments in a workspace
Debug print
Add debug prints for variables quickly.
leap.nvim
Add leap motion to nvim, like vimium, EasyMotion, hop and such.
If you liked clever-f you will love flit.nvim
vim-tmux-navigator
Make pane switching from/to nvim seamless, if you are using tmux its a must!
suda.vim
Write/read to/from files that requires sudo without executing nvim as sudo.
impatient.nvim
Improves startup time
Man pager
Consider make nvim your man pager, its so awesome to control man pages as you control your editor.
Add this to your .shellrc:
# nvim as man viewer
export MANPAGER='nvim +Man! .'
export MANWIDTH=999
More
There are many many more plugins for neovim, you can check out awesome-neovim, and you can also my list - packer.lua
Summary
Thanks for reading! I hope this guide helped you learn Neovim.
This guide doesn't cover everything, make sure you keep learning about your text editor and keep improving your skill.
If you found mistakes make sure to leave feedback at the issues section
If you liked the guide consider to leave a star
.
To keep up with new plugins and updates I recommend to:
- Watch awesome-neovim to get notified for new PR's (plugins)
- Subscribe to /r/neovim
- Keep an eye on This week in Neovim