How do I cycle through numbered registers to find a previous deletion?
Vim stores the last 9 deletions in numbered registers 1-9, with the most recent in register 1.
category:
registers
tags:
#registers
#numbered
#undo
#history
How do I yank text inside delimiters into a specific named register?
Combining named registers with text object motions lets you precisely yank structured content — like function arguments, quoted strings, or bracketed expressi
category:
registers
tags:
#registers
#text-objects
#yank
#delimiters
How do I use the expression register in a mapping to insert dynamic values?
:nnoremap <leader>d "=strftime('%Y-%m-%d')<CR>p
The expression register (=) evaluates Vimscript expressions and uses the result as register content.
category:
registers
tags:
#registers
#expression
#mapping
#dynamic
How do I access the current and alternate filename registers in Vim?
Vim provides special read-only registers that hold the current and alternate filenames.
category:
registers
tags:
#registers
#filename
#special-registers
#buffers
How do I call one macro from inside another macro?
Vim macros can call other macros, enabling modular macro composition.
category:
registers
tags:
#registers
#macros
#nested
#composition
How do I transform register contents using Vimscript functions?
:put =map(getreg('a', 1, 1), 'toupper(v:val)')
By using getreg() with the list flag and applying map(), you can transform register contents with any Vimscript function before pasting.
category:
registers
tags:
#registers
#transform
#vimscript
#map-function
How do I paste register contents literally without triggering mappings in insert mode?
In insert mode, a pastes register a but processes the text as if typed, which can trigger abbreviations and mappings.
category:
registers
tags:
#registers
#insert-mode
#paste
#literal
How do I view all LSP diagnostics in a structured list with Trouble?
trouble.
category:
plugins
tags:
#plugins
#diagnostics
#lsp
#trouble
How do I display available keybindings in a popup when pressing leader?
which-key.
category:
plugins
tags:
#plugins
#which-key
#keybindings
#productivity
How do I clear or reset a specific register in Vim?
Registers persist their contents throughout your Vim session and even across sessions if viminfo or shada is enabled.
category:
registers
tags:
#registers
#clear
#reset
#management
How do I convert a register's type between characterwise and linewise?
:call setreg('a', @a, 'l')
Registers in Vim have a type — characterwise, linewise, or blockwise — that affects how their contents are pasted.
category:
registers
tags:
#registers
#setreg
#type-conversion
#linewise
How do I preview, stage, and navigate Git hunks inline with gitsigns?
gitsigns.
category:
plugins
tags:
#plugins
#git
#gitsigns
#version-control
How do I quickly switch between a set of frequently used files with Harpoon?
:lua require('harpoon.ui').toggle_quick_menu()
Harpoon by ThePrimeagen lets you mark a small set of files (typically 4-6) and instantly switch between them with dedicated keybindings.
category:
plugins
tags:
#plugins
#harpoon
#navigation
#file-switching
How do I manage Neovim plugins with lazy loading using lazy.nvim?
lazy.
category:
plugins
tags:
#plugins
#lazy-loading
#package-manager
#neovim
How do I use mini.nvim's modular plugins for surround, comment, and more?
:lua require('mini.surround').setup()
mini.
category:
plugins
tags:
#plugins
#mini-nvim
#modular
#neovim
How do I select functions, classes, and other code structures using Treesitter?
:TSTextobjectSelect @function.outer
The nvim-treesitter-textobjects plugin provides syntax-aware text objects powered by Treesitter's AST parsing.
category:
plugins
tags:
#plugins
#treesitter
#text-objects
#neovim
How do I persistently highlight specific patterns with custom colors in Vim?
:call matchadd('Search', 'pattern')
The matchadd() function lets you add persistent highlights to patterns without affecting the search register.
category:
search
tags:
#search
#highlighting
#matchadd
#advanced-search
How do I auto-format code on save using conform.nvim?
:lua require('conform').format()
conform.
category:
plugins
tags:
#plugins
#formatting
#conform
#neovim
How do I set up a debugger with breakpoints in Neovim?
:lua require'dap'.toggle_breakpoint()
The nvim-dap plugin implements the Debug Adapter Protocol in Neovim, providing a full debugging experience with breakpoints, step-through execution, variable in
category:
plugins
tags:
#plugins
#debugging
#dap
#neovim
How do I view Git log with graph visualization inside Vim using fugitive?
:Git log --oneline --graph
Tim Pope's vim-fugitive provides a complete Git interface inside Vim.
category:
plugins
tags:
#plugins
#git
#fugitive
#version-control