How do I search for a string containing special regex characters like dots or asterisks without escaping them?
\V
Vim's default search mode gives special meaning to characters like .
415 results for "n N"
\V
Vim's default search mode gives special meaning to characters like .
: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.
set pumblend=10
Neovim supports pseudo-transparency for the completion popup menu via pumblend and for floating windows via winblend.
e
The e command moves the cursor to the last character of the current word.
:bufdo {cmd}
:bufdo executes an Ex command in each open buffer in sequence, cycling through every buffer in the buffer list.
getreg()
The getreg({name}) function returns the content of any register as a string.
qaq qa...@aq @a
A recursive macro calls itself at the end of its recording, causing it to repeat indefinitely until a command inside it fails (like a search hitting the end of
vim.lsp.buf.format()
Neovim's built-in LSP client exposes vim.
y/{pattern}<CR>
Any operator in Vim can take a search motion as its argument.
:let @q = substitute(@q, 'old', 'new', 'g')
When a recorded macro has a typo or needs a small tweak, re-recording the entire thing is error-prone.
:set foldopen
The foldopen option lets you specify exactly which cursor movements and commands will automatically open a closed fold.
d/{pattern}<CR>
Vim lets you use a / search as a motion for any operator.
:put =execute('{cmd}')
The :put =execute('{cmd}') idiom inserts the output of any Vim Ex command as text in your buffer.
registers #registers #ex-commands #command-line #normal-mode
vim.snippet.expand()
Neovim 0.
<C-o> / <C-i>
Vim maintains a jumplist — a history of every "jump" you make (searches, marks, gg, G, %, etc.
:[range]norm @{register}
The :normal command executes normal-mode keystrokes on each line in a range — including macro playback.
:set concealcursor=nv
The 'concealcursor' option controls in which modes concealed text is revealed on the cursor line.
vim.lsp.buf.code_action({ apply = true, filter = function(a) return a.isPreferred end })
When an LSP server marks a code action as isPreferred (e.
qqq qq{commands}@qq @q
A recursive macro calls itself at the end of its recording, causing it to repeat automatically until a motion fails (like j at the last line).
:set formatoptions
The formatoptions setting is a string of single-character flags that governs Vim's automatic text formatting: when lines wrap, whether comment syntax continues