How do I jump between merge conflict markers in a file?
]n
During a git merge, Vim can navigate directly between conflict markers (>>>>>>) using ]n and [n.
69 results for "dd"
]n
During a git merge, Vim can navigate directly between conflict markers (>>>>>>) using ]n and [n.
qaq
How it works To clear a macro register, you simply start recording into that register and immediately stop.
yss"
The yss{char} mapping from the vim-surround plugin surrounds the entire current line (ignoring leading whitespace) with the chosen delimiter.
guu / gUU
Vim's case operators gu (lowercase) and gU (uppercase) follow the same doubling convention as dd and yy: repeating the operator letter applies it to the whole c
:g/pattern/normal A;
The :global command combined with :normal lets you execute arbitrary normal mode keystrokes on every line that matches a pattern.
command-line #global #normal-mode #editing #ex-commands #batch-editing
:'<,'>norm I//
After making a visual selection, :norm {commands} executes normal-mode keystrokes on every line in the range.
<C-h> / <C-w> / <C-u>
Vim provides three levels of deletion directly in insert mode, so you don't need to switch to normal mode for small corrections.
stevearc/oil.nvim
oil.
let @q = 'keystrokes'
Macros recorded with q{register} are stored in registers and lost when Vim exits.
<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
:norm!
The :normal! command (abbreviated :norm!) executes a sequence of Normal mode keystrokes while completely ignoring user-defined mappings and abbreviations.
:normal! {cmd}
When you use :normal {cmd} in a Vimscript function, macro, or Ex command, Vim expands any keys through the user's current mappings first.
:help registers
Vim has 10 types of registers, each serving a specific purpose.
:m {address}
How it works The :m command (short for :move) moves one or more lines to after the specified address.
qaq qa...@aq @a
A recursive macro calls itself at the end of its recording, causing it to repeat indefinitely until a command inside it fails (like a search hitting the end of
:let @q .= "keys"
The string concatenation assignment :let @q .
@"
Vim macros are stored in registers — and you can execute any register as a macro with @{register}.
1000@q
Vim macros stop executing the moment any step in the macro causes an error — a failed search, a motion that cannot proceed, or a substitution with no matches.
:argdo execute 'normal @q' | update
:argdo runs an Ex command on every file in Vim's argument list (the arglist).
<C-f> (in command-line mode)
When you're already on the Vim command line and realize you need complex edits — inserting text from multiple positions, reordering arguments, or referencing