How do I navigate back through the tag stack after jumping to definitions?
:pop or <C-t>
When you jump to a tag definition with , Vim pushes your location onto a tag stack.
:pop or <C-t>
When you jump to a tag definition with , Vim pushes your location onto a tag stack.
[m and ]m
The [m and ]m motions jump to the start of method/function definitions in languages with brace-delimited blocks.
Va{ or Vi{
The a{ (around braces) and i{ (inside braces) text objects combined with visual mode let you instantly select an entire function body or code block, regardless
visual-mode #visual-mode #text-objects #code-navigation #selection
<C-]> / <C-t>
The command jumps to the definition of the keyword under the cursor using a tags file, and jumps back.
gd / gr / <leader>rn with nvim-lspconfig
The Language Server Protocol (LSP) brings IDE-level intelligence to Neovim — go-to-definition, find references, rename symbol, and more.
% with matchit plugin
The % command jumps between matching brackets by default, but with the built-in matchit plugin, it extends to match language-specific keywords like if/else/endi
:set foldmethod=indent
Setting foldmethod=indent tells Vim to create folds based on the indentation level of each line.