Adzz Vi-Editor
Adzz Vi-Editor
:q Exit, is no changes a Append after cursor * Search for next instance of current word
:q! Exit, ignore any changes A Append after line # Search for last instance of current word
:set ic Ignore case while searching o Open a new line after current line
Replacing
:set noic Case-sensitive searching O Open a new line before current line
:set nu Turn on line numbers r Replace one character :s/pt/str/flag Replace pattern with string
`c Go to beginning of marker c line x Delete character to the right of cursor g Replace all occurrences of
pattern
'c Go to first non-blank character of marker X Delete character to the left of cursor
c line c Confirm replaces
D Delete to the end of line
& Repeat last :s command
dd or Delete current line
Navigation
:d
Other
h or Move left :%d Delete all lines
u Undo last change
:1,$d Delete lines from beginning of file to
j or Move down end of current line U Undo all changes to line
:x,yd Delete lines x through y J Join lines
k or Move up
ndw Delete the next n words nJ Join next n lines
ndb Delete the previous n words . Repeat last command
l or Move right
ndd Delete n lines starting with current > Indent
< De-indent
w Move to next word
Copy and Paste
W Move to next blank delimited word
Other Navigation
yy or :y Yank current line
b Move to the beginning of the word
y{motion} Yank {motion} text ( Move a sentence back
B Move to the beginning of the blank
delimited word p Put after the position or line ) Move a sentence forward
e Move to the end of the word P Put before the position or line { Move a paragraph back
0 Move to the beginning of the line C Change to end of the line Fc Move back to c