How do I move the cursor to a specific column on the current line?
{count}|
The command moves the cursor to a specific screen column on the current line.
953 results for ":normal"
{count}|
The command moves the cursor to a specific screen column on the current line.
/\_.pattern
The \.
ddp
The ddp sequence swaps the current line with the line below it.
/pattern\{-}
The \{-} quantifier in Vim regex matches as few characters as possible, unlike which matches as many as possible (greedy).
[{
The [{ command moves backward to the nearest unmatched {.
g;
The g; command moves backward through the change list, jumping to positions where edits were made.
mode()
The mode() function returns a short string identifying the current editing mode — 'n' for Normal, 'i' for Insert, 'v' for Visual character-wise, 'V' for Visua
macros #macros #normal-mode #visual-mode #insert-mode #editing
v
The v command enters character-wise visual mode, letting you select text one character at a time.
qa ... j@bj q
You can create macros that call other macros, applying different operations to alternate lines or creating complex editing patterns.
:'<,'>norm .
The :'norm .
visual-mode #visual-mode #editing #normal-mode #repeat #dot-operator
"#p
The # register holds the name of the alternate file — the file you were editing just before the current one.
dip
The dip command deletes the inner paragraph — all contiguous non-blank lines surrounding the cursor.
<C-a>
The command increments the number under or after the cursor by 1.
/\v
Vim's default regex syntax requires backslashes before most special characters like +, (, ), {, and , which is the opposite of what most developers expect from
<C-o>zz
When you are typing in insert mode and the cursor drifts near the top or bottom of the screen, you normally have to press , then zz, then i or a to continue edi
:[range]join
The :[range]join Ex command lets you join lines by specifying an explicit line range — without having to navigate there or use visual selection.
{count}%
When used with a count, the % command jumps to the line at that percentage of the file.
"+y and "+p
The "+ register is linked to the system clipboard.
M
The M command moves the cursor to the line in the middle of the current window.
:g/./norm @q
Combining the :global command with :normal lets you run a macro on every non-blank line in one shot.