This guide covers the modern Neovim plugin replacements and their usage.
| Old Plugin | New Plugin | Reason |
|---|---|---|
| vim-airline | mini.statusline | Lua-based, faster, lighter |
| tagbar | aerial.nvim | LSP/TreeSitter support, better integration |
| vim-commentary | Comment.nvim | Smart context-aware commenting |
| vim-surround | mini.surround | Part of mini.nvim ecosystem |
| vim-easy-align | mini.align | Simpler, more efficient |
| targets.vim | mini.ai | Better TreeSitter integration |
| vim-gitgutter | gitsigns.nvim | Already installed, more features |
| vim-grepper | Telescope grep | Built-in, more powerful |
Mini.nvim provides a collection of independent Lua modules for Neovim.
A minimal and fast statusline.
| Key | Action | Description |
|---|---|---|
ys{motion}{char} |
Add surrounding | Add surrounding characters |
ds{char} |
Delete surrounding | Delete surrounding characters |
cs{old}{new} |
Change surrounding | Change surrounding characters |
Examples:
ysiw" - Surround word with quotesds' - Delete surrounding single quotescs"' - Change double quotes to single quotes| Key | Action | Description |
|---|---|---|
ga |
Align | Start interactive alignment |
gA |
Align with preview | Start alignment with preview |
Usage:
ga=, :, |)Enhanced text objects with TreeSitter support.
| Text Object | Description |
|---|---|
if/af |
Function (inner/around) |
ic/ac |
Class (inner/around) |
io/ao |
Block/conditional/loop (inner/around) |
Plus all standard text objects with improvements.
Modern code outline window using LSP and TreeSitter.
| Key | Action | Description |
|---|---|---|
<leader>T |
Toggle Aerial | Open/close code outline |
<leader>at |
Toggle Aerial | Alternative binding |
<leader>an |
Aerial navigation | Toggle navigation window |
Inside Aerial window:
<CR> - Jump to symbolp - Preview (scroll to symbol without jumping)q - Closeo/O - Toggle fold / Toggle all folds{/} - Previous/next symbolSmart commenting with context awareness.
| Mode | Key | Action |
|---|---|---|
| Normal | gcc |
Toggle line comment |
| Normal | gbc |
Toggle block comment |
| Normal | gc{motion} |
Toggle comment over motion |
| Visual | gc |
Toggle comment for selection |
| Visual | gb |
Toggle block comment for selection |
Examples:
gcc - Comment current linegc3j - Comment current line and 3 lines belowgcip - Comment inside paragraph<C-j>/<C-k> for quick navigation in the outline