Vi Editor Cheat Sheet.PDF

(47 KB) Pobierz
29196451 UNPDF
Assumptions: At the end of commands, if nothing happens press the ENTER or RETURN key. Unix is case
Search forward for string
Search backward for string
vi lename Normal wayofentering vi
:s/old/new/n Search and replace n times
Delete n lines
Change current lename to le
Delete n words
Yoryy Copy current line to new bu er
Go to line number n
Go to line number n
Replace character with x
:!command Issue UNIX command from
Append le into vi
^B Scroll back one screen
^U Scroll back half screen
k Move up one line
Move left one character h ( = () = )
l Move right one character
Goto rst position on 0 (zero)
$ Goto last position on
j Movedown one line
^D Scroll forward half screen
^F Scroll forward one screen
29196451.001.png 29196451.002.png 29196451.003.png 29196451.004.png
Zgłoś jeśli naruszono regulamin