I define a “general plugin” as a plugin that I use regardless of the filetype I’m editing.
These will add extra functionality for enhancing my Neovim experience.
I use Which-key for displaying keybindings as I type them. For example if I press my
<leader> key and wait a few milliseconds, it will display all keybindings I have set that begin with my
It will also display any marks and registers I have set, when only pressing
Vim-commentary makes it super easy to comment out lines in files using vim motions. So in normal mode you can enter
gcc to comment out the current line; or
5gcc to comment out the next 5 lines.
You can also make a visual selection and enter
gc to comment out that selected block.
Vim-surround provides me with an extra set of abilities on text objects. It lets me add, remove and change surrounding elements.
For example I can place my cursor over a word and enter
ysiw" to surround that word with double quotes.
Or I can make a visual selection and press
S" to surround that selection with double quotes.
They include mappings for the
] keys for previous and next items. For example using
]b moves backwards and forwards through your open buffers. Whilst
]q will move you backwards and forwards respectively through your quickfist list items.