0% found this document useful (0 votes)
42 views1 page

VI / Vim Graphical Cheat Sheet: I o R I O

This document is a cheat sheet for navigating and using commands in the vi/vim text editor. It provides a visual guide to the normal mode keyboard shortcuts for movement, editing, searching, and other common vi/vim commands arranged in a table by sections.

Uploaded by

SergioLoest
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

VI / Vim Graphical Cheat Sheet: I o R I O

This document is a cheat sheet for navigating and using commands in the vi/vim text editor. It provides a visual guide to the normal mode keyboard shortcuts for movement, editing, searching, and other common vi/vim commands arranged in a table by sections.

Uploaded by

SergioLoest
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Esc vi / vim graphical cheat sheet

normal
mode

~ toggle
case ! @ #
external
filter $.
play
macro %. ^ prev
ident & * (eol ) goto
match
"soft"
bol
repeat
:s
next
ident
begin
sentence
end
sentence _. "soft" bol
down +. next
line

`. 4. 5. - =
goto subst 1,3 fwd extra6 "hard" prev auto 3
mark 1 2
append
3 char 6
delete
7 8 9to char0 cmds bol line format

Q. W Eex
mode R next
WORD T Y end
WORD U I Oreplace
mode P. back
'till
yank
line
undo
line
insert
at bol
open
above
paste
before {. begin
parag. }. end
parag.

q. w e r. t. y u i o p [. ].
record next end replace 1,3 insert open paste 1
'till yank undo misc misc
macro word word char mode below after

A. S append
at eolD F G
subst
line H J K
delete
to eol L :
"back"
fwd
eof/
goto ln
screen
top
join
lines
help
screen
bottom
ex cmd
line ". reg. 1
spec |. bol/
goto col

a s d f. g. h j k l ; '. \.
subst 1,3 fwd extra6 repeat goto not
append delete
char to char cmds t/T/f/F mk. bol used

Z. X C
extra4
V B N M < > un- 3
?.
back- change visual prev prev screen 3 find
indent
quit space to eol lines WORD (find) mid'l indent rev.

z. x c
extra5
v b n m , . /.
delete 1,3 visual prev next set reverse repeat
change find
cmds char mode word (find) mark t/T/f/F cmd

moves the cursor, or defines Main command line commands ('ex'): Notes:
motion the range for an operator :w (save), :q (quit), :q! (quit w/o saving) (1) use "x before a yank/paste/del command
direct action command, :e f (open file f), to use that register ('clipboard') (x=a..z,*)
command :%s/x/y/g (replace 'x' by 'y' filewide), (e.g.: "ay$ to copy rest of line to reg 'a')
if red, it enters insert mode
:h (help in vim), :new (new file in vim),
requires a motion afterwards, (2) type in a number before any action
operator operates between cursor & to repeat it that number of times
Other important commands:
destination CTRL-R: redo (vim), (e.g.: 2p, d2w, 5i, d4j)
special functions, CTRL-F/-B: page up/down, (3) duplicate operator to act on current line
extra requires extra input CTRL-E/-Y: scroll line up/down, (dd = delete line, >> = indent line)

q. commands with a dot need CTRL-V: block-visual mode (vim only)


(4) ZZ to save & quit, ZQ to quit w/o saving
a char argument afterwards Visual mode:
bol = beginning of line, eol = end of line Move around and type operator to act (5) zt: scroll cursor to top,
mk = mark, yank = copy on selected region (vim only) zb: bottom, zz: center
words: res := base + [Link]; (6) gg: top of file (vim only),
gf: open file under cursor (vim only)
WORDs: res := base + [Link];

Based on SVG version at [Link]

You might also like