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.
870 results for "it at"
]c
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one.
:10,20t30
The :t command (short for :copy) duplicates lines from one location to another without touching any registers.
command-line #editing #ex-commands #lines #productivity #ranges
:let @a = "Iprefix: \<Esc>"
The :let @a = ".
/pattern/+3
Vim's search command accepts an offset after the pattern that shifts where the cursor lands relative to the match.
]m
The ]m command jumps to the start of the next method in Java-style code.
:g/pattern/norm @a
The :g/pattern/norm @a command combines the global command with macro execution.
:<line-number>
When you know the exact line number you want to navigate to, the colon command is the quickest way to get there.
ge
The ge motion moves the cursor backward to the end of the previous word.
qaI// <Esc>jq
This macro adds a // comment prefix to the beginning of the current line and moves down.
<C-w>]
The ] command opens the definition of the tag under the cursor in a new horizontal split.
gcc
The vim-commentary plugin by Tim Pope provides a minimal yet powerful way to toggle comments in any programming language.
plugins #plugins #commentary #commenting #editing #normal-mode
ce
The ce command changes from the cursor position to the end of the current word.
u after macro (single undo)
When a macro makes multiple changes, a single u undoes the entire macro as one unit.
<C-t>
The command pops the tag stack and returns to the position from which you last used or :tag.
<C-v>u{code} in insert mode
In insert mode, u followed by a 4-digit hex code inserts the Unicode character at that code point.
:windo set scrollbind
The scrollbind option locks two or more windows together so that scrolling in one window automatically scrolls the others by the same amount.
buffers-windows #windows #navigation #splits #diff #productivity
q:
The command-line window is a special buffer that shows your entire Ex command history and lets you edit entries using the full power of Vim's normal mode before
command-line #command-line #ex-commands #history #editing #productivity
mA / 'A
Uppercase marks (A-Z) are global marks — they remember not only the line and column position, but also the file where they were set.
navigation #navigation #marks #normal-mode #buffers #productivity
vim-repeat
The vim-repeat plugin by Tim Pope extends Vim's built-in .
plugins #plugins #repeat #dot-command #workflow #normal-mode
"1p through "9p
Registers 1-9 contain the last 9 deletions or changes that are at least one line long.