Skip to content

Normal Mode Commands

kritixilithos edited this page Nov 23, 2019 · 20 revisions
Name Mnemonic Description
{count}é{char} <M-i> Insert {char} before cursor {count} times. Synonym of {count}i{char}<esc>
{count}É{char} <M-I> Insert {char} before the first non-whitespace character in the current line {count} times. Synonym of {count}I{char}<esc>
{count}á{char} <M-a> Insert {char} after cursor {count} times. Synonym of {count}a{char}<esc>
{count}Á{char} <M-A> Insert {char} after the end of the current line {count} times. Synonym of {count}A{char}<esc>
{count}ä{motion} <M-d> Create {count} copies of {motion}. Synonym of d{motion}{count}P
ä{motion} <M-d> Duplicate {motion}. Synonym of y{motion}{count}P
Ä <M-D> Duplicate line. With or without a count. Synonym of ä_
À <M-@> Cycle through arguments as V code (or numbers)
{count}ñ <M-q> Playback the text between two ñ characters {count} times (or until a breaking error).
ò <M-r> Playback the text between two ò character recursively until a breaking error.
Ò{char} <M-R> Replace every character on current line with {char}. Synonym of Vr.
Î{commands}<cr> <M-N> Execute {commands} on every single line. Synonym of :%norm <commands>
î{commands}<cr> <M-n> Execute {commands} on current line. Synonym of :norm <commands>
­­­­­­­-­ <M--> Decrement the current count
« <M-+> Increment the current count
Û <M-[> Set count to current line number
Ý <M-]> Set count to current column number
û <M-{> Set count to number of lines in buffer
ý <M-}> Set count to number of columns in the current line
Ù <M-Y> Duplicate the current line below the cursor. Directly equivalent to Yp
ï <M-o> Insert {count} newline below the cursor without going into insert mode. Synonym of o<ESC>
Ï <M-O> Insert {count} newline above the cursor without going into insert mode. Synonym of O<ESC>
ð <M-p> "Replace-paste". Paste the specified register over the text currently in the buffer, after the cursor position.
Ð <M-P> "Replace-PASTE". Paste the specified register over the text currently in the buffer, before the cursor position.
{count}gó <M-s> Sleep for 100 milliseconds if {count} is not given, otherwise sleeps for {count} milliseconds
{count}gÓ <M-S> Sleep for 500 milliseconds if {count} is not given, otherwise sleeps for {count}*100 milliseconds
¢ <M-"> Go to the most recent set mark
æ{motion} <M-f> Reverse {motion}
Clone this wiki locally