How do I delete an entire paragraph?
dip
The dip command deletes the inner paragraph — all contiguous non-blank lines surrounding the cursor.
dip
The dip command deletes the inner paragraph — all contiguous non-blank lines surrounding the cursor.
:t {line-number}
The :t (copy/transfer) command duplicates the current line and places it after the specified line number.
<C-x>
The command decrements the number under or after the cursor by 1.
ce
The ce command changes from the cursor position to the end of the current word.
==
The == command auto-indents the current line based on the surrounding context.
cc
The cc command deletes the entire content of the current line (preserving indentation) and enters insert mode.
:%normal command
The :normal command executes normal mode commands programmatically on a range of lines.
:{line}put {register}
How it works The :put Ex command pastes the contents of a register after a specified line.
:%s/\<word\>/replacement/g
How it works In Vim's regular expressions, \ are word boundary anchors: \ matches the end of a word.
:iabbrev {abbr} {expansion}
How it works The :iabbrev command creates abbreviations that automatically expand when you type them in insert mode.
:m {address}
How it works The :m command (short for :move) moves one or more lines to after the specified address.
:t {address}
How it works The :t command (short for :copy) copies one or more lines and places them below the specified address.
:retab
How it works The :retab command replaces all tab characters in the current buffer with the appropriate number of spaces, based on your current tabstop and expan
yiw
How it works The command yiw yanks (copies) the inner word under the cursor.
=i{ or =ap
The = operator performs smart indentation based on Vim's filetype-aware indent rules.
:%s/,/\r/g
In Vim's substitute command, \r in the replacement string inserts a newline.
<C-v>u{code}
In insert mode, followed by u and a 4-digit hex code inserts the Unicode character with that code point.
<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.
gU{motion} / gu{motion} / g~{motion}
Vim has three case operators that work with any motion or text object: gU for uppercase, gu for lowercase, and g~ for toggle case.
editing #editing #case #operators #text-objects #normal-mode
ggVG
While Vim doesn't have a built-in "entire buffer" text object, the ggVG sequence achieves it: go to the first line, enter line-wise visual mode, then select to