How do I delete a word and its surrounding whitespace?
The daw command deletes a word including one side of its surrounding whitespace.
category:
editing
tags:
#editing
#text-objects
#delete
#normal-mode
How do I delete an entire line in Vim?
The dd command deletes the entire current line, regardless of where the cursor is positioned on that line.
category:
editing
tags:
#editing
#delete
#normal-mode
How do I delete the content inside an HTML tag?
The dit command deletes the text inside the nearest enclosing HTML or XML tag pair without removing the tags themselves.
category:
editing
tags:
#editing
#text-objects
#delete
#normal-mode
How do I delete from the cursor to the end of the line?
The D command deletes everything from the cursor position to the end of the current line.
category:
editing
tags:
#editing
#delete
#normal-mode
How do I delete from the cursor to the end of a word?
The de command deletes from the cursor position to the end of the current word.
category:
editing
tags:
#editing
#delete
#motions
#normal-mode
How do I delete text without overwriting my yank register?
The "d command deletes text using the black hole register ("), which discards the deleted content instead of storing it.
category:
registers
tags:
#registers
#editing
#delete
#normal-mode
How do I start typing at the end of a line in Vim?
The A command moves the cursor to the end of the current line and enters insert mode.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
How do I append text to a register instead of replacing it?
The "Ayy command appends the current line to register a instead of overwriting it.
category:
registers
tags:
#registers
#yank
#editing
#normal-mode
How do I auto-indent an entire file in Vim?
The gg=G command re-indents every line in the current file according to Vim's indentation rules.
category:
editing
tags:
#editing
#indentation
#formatting
#normal-mode
How do I center the screen on the cursor line?
The zz command scrolls the window so that the current cursor line appears in the middle of the screen.
category:
navigation
tags:
#navigation
#normal-mode
How do I replace the next search match and repeat it easily with dot?
The cgn command combines the change operator with the gn motion to change the next occurrence of your last search pattern.
category:
editing
tags:
#editing
#search
#repeat
#normal-mode
#productivity
How do I replace a word under the cursor?
The ciw command deletes the inner word under the cursor and drops you into insert mode so you can type a replacement.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#insert-mode
How do I change the contents inside curly braces?
The ci{ command deletes everything inside the nearest pair of curly braces {} and places you in insert mode to type a replacement.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#insert-mode
How do I change the text inside parentheses?
The ci( command deletes everything inside the nearest pair of parentheses and places you in insert mode, ready to type a replacement.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#insert-mode
How do I change text from the cursor to the end of the line?
The C command deletes everything from the cursor position to the end of the line and places you in insert mode.
category:
editing
tags:
#editing
#normal-mode
#insert-mode
How do I delete a word under the cursor?
The diw command deletes the inner word under the cursor.
category:
editing
tags:
#editing
#text-objects
#delete
#normal-mode
How do I jump to the matching bracket or parenthesis?
The % command jumps to the matching bracket, parenthesis, or brace.
category:
navigation
tags:
#navigation
#motions
#brackets
#normal-mode
How do I yank and paste using named registers?
Named registers let you store multiple pieces of text independently.
category:
registers
tags:
#registers
#yank
#paste
#normal-mode
How do I record and replay a macro in Vim?
Macros let you record a sequence of commands and replay them.
category:
macros
tags:
#macros
#automation
#registers
#normal-mode
How do I repeat the last change in Vim?
The .
category:
editing
tags:
#editing
#normal-mode
#productivity
#motions