How do I move to the first non-blank character of the next line?
+
The + command moves the cursor to the first non-blank character of the next line.
953 results for ":normal"
+
The + command moves the cursor to the first non-blank character of the next line.
yy
The yy command yanks (copies) the entire current line, including the newline character.
yiww"_ciw\<C-r>0\<Esc>
When you are doing repetitive refactors, cw is fast but it overwrites the unnamed register with the replaced text.
<C-e>
The command scrolls the window down one line at a time while keeping the cursor on its current line (until the cursor would go off-screen).
*Ndgn
When you are reviewing repetitive text, you often need to remove one specific match without running a broad substitute.
`{mark}
The backtick command ` ` followed by a mark name jumps to the exact line and column of that mark, unlike the single-quote ' which only goes to the line.
<C-f> (from command-line mode)
When you are partway through typing a long or complex Ex command on the : prompt, you can press to open the command-line window.
:let @a = 'text'
Vim's :let command lets you assign a value directly to any named register without performing a yank or delete operation.
registers #registers #macros #vimscript #ex-commands #normal-mode
,
After using f, t, F, or T for single-character motion on a line, Vim lets you repeat that character search without retyping the target.
:set matchpairs+=<:>
By default, the % command jumps between (), {}, and [] pairs.
config #navigation #config #matchpairs #editing #normal-mode
qqgUiwjq2@q
Macros are strongest when the edit pattern is stable but too awkward for a one-liner substitute.
{N}@q
Prefix a macro invocation with a count to execute it up to N times in a single command.
qqq
Pressing qqq in normal mode is the quickest way to empty a macro register.
C
The C command deletes everything from the cursor position to the end of the line and places you in insert mode.
<C-o> and <C-i>
Vim maintains a jump list of positions you have visited.
gF
The gF command opens the file under the cursor and jumps to the line number that appears after the filename.
r<CR>
You can split a line at the cursor without entering Insert mode by using r.
r{char}
The r{char} command replaces the character under the cursor with {char} without ever entering insert mode.
\v
Vim's default regex mode ("magic") requires backslashes before many special characters: \(, \ , \+, \{.
feedkeys()
The feedkeys({keys}, {flags}) function inserts a string of keystrokes into Vim's input queue as if the user had typed them.