How do I decrement a number under the cursor?
<C-x>
The command decrements the number under or after the cursor by 1.
953 results for ":normal"
<C-x>
The command decrements the number under or after the cursor by 1.
])
The ]) command moves forward to the next unmatched ).
?{pattern}
The ? command searches backward from the cursor position.
:set operatorfunc=MyFunc<CR>g@{motion}
Vim's operatorfunc and g@ let you define custom operators that accept any motion or text object, just like built-in operators d, c, and y.
:'<,'>norm @a
Combining :normal with a visual range lets you replay a macro on each line of a selection individually — far more targeted than recursive macros or @@ repeati
/\<word\>
The \ atoms create word boundaries in a search pattern, matching only complete words and not substrings within larger words.
cc
The cc command deletes the entire content of the current line (preserving indentation) and enters insert mode.
ci`
The ` ci ` command changes the text inside backtick delimiters.
<C-w>> and <C-w><
The > and > increases width by 1 column > increases width by 10 columns maximizes the window width Example With a vertical split, 20> gives the current window 2
n
After performing a search with / or ?, pressing n repeats the search in the same direction to find the next match.
(
The ( motion moves the cursor backward to the start of the current or previous sentence.
\@<=pattern
The \@<= atom is a positive lookbehind in Vim regex.
/{pattern}
The / command initiates a forward search in the file.
==
The == command auto-indents the current line based on the surrounding context.
F{char}
The F command moves the cursor backward to the previous occurrence of a specified character on the current line.
/\v pattern
The \v flag enables "very magic" mode in Vim regex, where most special characters work like standard regular expressions without needing backslashes.
{
The { motion moves the cursor backward to the previous blank line, jumping to the beginning of the current or previous paragraph.
".
The .
/pattern\@!
The \@! atom is a negative lookahead in Vim regex.
v:register
When writing custom mappings or operator functions, v:register gives you the register name that the user prefixed the mapping with.