How do I incrementally expand or shrink a selection based on syntax tree nodes using nvim-treesitter?
gnn / grn / grm
nvim-treesitter's incremental selection module lets you grow and shrink your visual selection one syntax node at a time.
gnn / grn / grm
nvim-treesitter's incremental selection module lets you grow and shrink your visual selection one syntax node at a time.
:Lazy profile
When Neovim starts slowly, finding the culprit plugin is tedious without tooling.
]c / [c (gitsigns.nvim)
gitsigns.
<C-x> / <C-v> / <C-t> (in Telescope)
When browsing results in a Telescope picker, you are not limited to opening selections in the current window.
:Oil
oil.
gh (in netrw)
When browsing files with Vim's built-in netrw file explorer (:Explore or :Ex), hidden files starting with a dot (.
crs / crc / crm / cru
The vim-abolish plugin adds coercion operators that instantly convert the word under the cursor between common naming conventions.
plugins #editing #text-objects #plugins #normal-mode #formatting
:InspectTree
Opens an interactive split window showing the treesitter parse tree for the current buffer.
:let g:netrw_liststyle = 3
By default, netrw shows files in a flat listing.
plugins #netrw #file-browser #plugins #configuration #built-in
R (in netrw)
Vim's built-in file explorer netrw lets you rename files and directories without leaving the editor.
gcip
The vim-commentary plugin exposes gc as a comment operator, which means it composes with any Vim motion or text object.
plugins #plugins #editing #commenting #text-objects #normal-mode
yss"
The yss{char} mapping from the vim-surround plugin surrounds the entire current line (ignoring leading whitespace) with the chosen delimiter.
:packadd termdebug
Vim ships with a built-in termdebug plugin that integrates GDB directly into the editor.
- (vim-vinegar)
The vim-vinegar plugin by Tim Pope enhances Neovim's built-in netrw file browser.
packadd matchit
Vim ships with matchit.
[q / ]q
The vim-unimpaired plugin by Tim Pope provides bracket-pair mappings for navigating quickfix and location list entries: [q moves to the previous entry and ]q mo
ysiw"
The ysiw" command wraps the word under the cursor in double quotes using the vim-surround plugin.
:packadd
Since Vim 8 and Neovim, Vim has a built-in package system that can load plugins directly from the filesystem — no external plugin manager required.
:packadd matchit
The matchit plugin ships with Vim and Neovim but is not enabled by default.
:G log -- %
vim-fugitive's :G log -- % loads the git commit history for the current file into a quickfix-style log buffer.