How do I rename a variable across all case variants (snake_case, camelCase, MixedCase) at once?
:Subvert
The vim-abolish plugin's :Subvert command (abbreviated :S) substitutes a word across all its case variants simultaneously.
2125 results for "i' a'"
:Subvert
The vim-abolish plugin's :Subvert command (abbreviated :S) substitutes a word across all its case variants simultaneously.
:vimgrep /pattern/j **/*<CR>:copen<CR>
When you need a project-wide search but do not want to leave Vim, :vimgrep gives you a built-in grep workflow with navigation, filtering, and batch editing thro
search #search #quickfix #vimgrep #project-workflow #command-line
:b partial<Tab>
The :b (buffer) command accepts partial filename matching with tab completion.
:set option!
For any boolean option, appending ! to :set inverts its current value.
<C-d>
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
CursorHold
The CursorHold autocommand event fires once whenever the cursor has been motionless in normal mode for updatetime milliseconds.
vim.on_key()
vim.
:bufdo %s/old/new/ge | update
The :bufdo command executes an Ex command in every loaded buffer.
buffers-windows #buffers #ex-commands #editing #substitution
zd
zd removes the fold definition at the cursor position — the text inside the fold is not deleted.
\&
Vim's \& operator is the AND combinator in a search pattern.
"{register}y{motion}
Vim has 26 named registers (a-z) that act as independent clipboards.
registers #registers #editing #normal-mode #yank #productivity
:set makeprg={command}
Vim's :make command runs a build program and automatically loads its output into the quickfix list so you can jump directly to errors and warnings.
:normal! {cmd}
When you use :normal {cmd} in a Vimscript function, macro, or Ex command, Vim expands any keys through the user's current mappings first.
:trust
Neovim supports project-local configuration via a .
:noautocmd {cmd}
The :noautocmd (abbreviated :noa) prefix suppresses all autocommand events for the duration of the command that follows it.
:ce
Vim has three built-in ex commands for text alignment that most users never discover: :ce (center), :ri (right-justify), and :le (left-justify).
1000@q
Vim macros stop executing the moment any step in the macro causes an error — a failed search, a motion that cannot proceed, or a substitution with no matches.
<C-w>T
The T (Ctrl+w then Shift+t) command moves the current split window into a new tab page.
buffers-windows #buffers-windows #windows #tabs #normal-mode
v:register
When writing custom mappings or operator functions, v:register gives you the register name that the user prefixed the mapping with.
:nnoremap <expr> j (v:count == 0 ? 'gj' : 'j')
Expression mappings use the flag to evaluate a Vimscript expression at the time the key is pressed.