STARTING vi
vi filename redaguoti byla vardu "filename" vi newfile sukurti nauja byla vardu "newfile"
ENTERING TEXT
i įterpti tekstą iš kairės nuo žymeklio a įterpti tekstą iš dešinės nuo žymeklio
MOVING THE CURSOR
h į kairę per simbolį j į apačią k į viršų l į dešinę per simbolį
BASIC EDITING
x trinti simbolį už žymeklio nx trinti n simbolių už žymeklio X trinti simbolį prieš žymeklį dw trinti žodį ndw trinti n žodžių dd iškirpti eilutę ndd iškirpti n eilučių D trinti simbolius nuo kursoriaus iki eilutės pabaigos r pakeisti simbolį po žymekliu cw pakeisti žodį ncw pakeisti n žodžių C keisti tekstą nuo žymeklio iki eilutės galo o įterpti eilutę po žymekliu (ready for insertion) O įterpti eilutę virš žymeklio (ready for insertion) J join succeeding line to current cursor line nJ join n succeeding lines to current cursor line u undo last change U restore current line
MOVING AROUND IN A FILE
w forward word by word b backward word by word $ to end of line 0 (zero) to beginning of line H to top line of screen M to middle line of screen L to last line of screen G to last line of file 1G to first line of file <Control>f scroll forward one screen <Control>b scroll backward one screen <Control>d scroll down one-half screen <Control>u scroll up one-half screen n repeat last search in same direction N repeat last search in opposite direction
CLOSING AND SAVING A FILE
ZZ save file and then quit :w save file :q! discard changes and quit file
External Links