Vim Cheat Sheet
Vim Cheat Sheet
Fx - jump to previous < - shift text left :wqa - write (save) and quit
occurence of character x on all tabs
y - yank (copy) marked text
Tx - jump to after previous Search and replace
occurence of character x d - delete marked text
/pattern - search for
; - repeat previous f, t, F or T ~ - switch case pattern
movement
u - change marked text to ?pattern - search
, - repeat previous f, t, F or T lowercase backward for pattern
movement, backwards
U - change marked text to \vpattern - 'very magic'
} - jump to next paragraph uppercase pattern: non-alphanumeric
(or function/block, when characters are interpreted as
editing code) special regex symbols (no
Registers escaping needed)
{ - jump to previous :reg[isters] - show
paragraph (or function/block, registers content n - repeat search in same
when editing code) direction
"xy - yank into register x
zz - center cursor on screen N - repeat search in opposite
"xp - paste contents of direction
Ctrl + e - move screen down register x
one line (without moving :%s/old/new/g - replace
cursor) "+y - yank into the system all old with new throughout
clipboard register file
Ctrl + y - move screen up
one line (without moving "+p - paste from the system :%s/old/new/gc - replace
cursor) clipboard register all old with new throughout
file with confirmations
Ctrl + b - move back one Marks and positions
full screen :noh[lsearch] - remove
:marks - list of marks highlighting of search
Ctrl + f - move forward one matches
full screen ma - set current position for
mark A Search in multiple files
Ctrl + d - move forward 1/2 :vim[grep] /pattern/
a screen `a - jump to position of mark
A {`{file}`} - search for
Ctrl + u - move back 1/2 a pattern in multiple files
screen y`a - yank text to position of
mark A
:cn[ext] - jump to the next
Insert mode -
inserting/appending text `0 - go to the position where match
Vim was previously exited
i - insert before the cursor :cp[revious] - jump to
`" - go to the position when the previous match
I - insert at the beginning of last editing this file
the line :cope[n] - open a window
`. - go to the position of the containing the list of matches
a - insert (append) after the last change in this file
cursor :ccl[ose] - close the
`` - go to the position before quickfix window
A - insert (append) at the end the last jump
of the line Tabs
:ju[mps] - list of jumps
o - append (open) a new line :tabnew or :tabnew
below the current line Ctrl + i - go to newer {page.words.file} -
position in jump list open a file in a new tab
O - append (open) a new line
above the current line Ctrl + o - go to older Ctrl + wT - move the
position in jump list current split window into its
ea - insert (append) at the own tab
end of the word :changes - list of changes
gt or :tabn[ext] - move
Ctrl + h - delete the g, - go to newer position in to the next tab
character before the cursor change list
during insert mode gT or :tabp[revious] -
g; - go to older position in move to the previous tab
Ctrl + w - delete word change list
before the cursor during #gt - move to tab number #
insert mode Ctrl + ] - jump to the tag
under cursor :tabm[ove] # - move
Ctrl + j - begin new line current tab to the #th position
during insert mode (indexed from 0)