vi
vi (visual) utility is a screen-oriented text editor.

vi
vi
vi
–not-a-term
–not-a-term, Skip warning for input/output not being a terminal.
vi
–ttyfail
-u <vimrc></vimrc>
–noplugin
–ttyfail, Exit if input or output is not a terminal.
-u <vimrc>, Use <vimrc> instead of any .vimrc.</vimrc></vimrc>
–noplugin, Don’t load plugin scripts.
vi
+
+<lnum></lnum>
–cmd <command></command></command>
+, Start at end of file.
+<lnum>, Start at line <lnum>.</lnum></lnum>
–cmd <command></command>, Execute <command></command> before loading any vimrc file.</command></command>
vi
–clean
–clean, ‘nocompatible’, Vim defaults, no plugins, no viminfo.
vi [INTERNAL COMMANDS]
/
?
/ = Repeat previous search forward ? = Repeat previous search backward
vi [INTERNAL COMMANDS]
h
j
k
l
h = Left j = Down k = Up l = Right
vi [INTERNAL COMMANDS]
i
o
a
i = Insert text before cursor o = Open new line for text below cursor a = Insert text after cursor
vi [INTERNAL COMMANDS]
d
p
y
dd
yy
d = Deletes characters and lines in the direction of choice. Choices are h, j, k, l. p = Paste buffer contents. y = Copies(Yank) a single character after the cursor into the buffer. dd = Deletes a current line. yy = Copies a current line into the buffer.
vi [INTERNAL COMMANDS]
ZZ
:w!
:q!
ZZ = Write the file and quit. \:w! = Write the file overriding protection. \:q! = Quit the file overriding protection.
Editors
vi
vim
nano
emacs