How do I jump between diff hunks in a diff view?
]c
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one.
953 results for ":normal"
]c
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one.
y$
The y$ command yanks (copies) text from the cursor position to the end of the line.
%
The % command jumps to the matching bracket, parenthesis, or brace.
L
The L command moves the cursor to the last line visible in the current window.
<C-y>
The command scrolls the window up one line at a time while keeping the cursor position fixed.
<C-w>r
The r command rotates windows in the current row or column.
]m
The ]m command jumps to the start of the next method in Java-style code.
"=strftime('%F')<CR>p
The expression register lets you compute text on demand and insert it without leaving Normal mode workflows.
registers #registers #expression-register #normal-mode #automation
]] and [[
The ]] and [[ motions jump between sections, traditionally defined as lines starting with { in the first column.
]p
The ]p command pastes text and adjusts its indentation to match the current line.
`[ and `]
The ` [ ` and ] ` marks automatically track the boundaries of the last changed or yanked text.
<C-w>p
The p command jumps to the previously active window (the last window you were in).
ge
The ge motion moves the cursor backward to the end of the previous word.
gt and gT
The gt command moves to the next tab page and gT moves to the previous one.
qabi"<Esc>ea"<Esc>wq
How it works This macro wraps the current word in double quotes and moves to the next word, making it easy to repeat across a line or file.
q{a-z}...q
Recording a macro captures a sequence of keystrokes into a register, which you can replay later.
O
The O (uppercase) command opens a new blank line above the current line and places you in insert mode, ready to type.
<C-]>
The command jumps to the definition of the keyword under the cursor using tag files.
<C-w>]
The ] command opens the definition of the tag under the cursor in a new horizontal split.
vi"
The vi" command visually selects all text inside double quotes, without including the quotes themselves.
visual-mode #visual-mode #text-objects #editing #normal-mode