HP t5525 Customization Techniques on HP Compaq Linux Thin Clients - Page 11
Appendix A: Partial list of vi commands
View all HP t5525 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 11 highlights
Appendix A: Partial list of vi commands Starting an Editing Session Text Insertion Commands vi filename, where filename is name of file to be edited. Undo Command u undo the last command. Cursor Positioning Commands a Appends text after cursor. Terminated by ESC key. A Appends text at end of the line. Terminated the ESC key. i Inserts text before cursor. Terminated by the ESC key. j Moves cursor down one line, same column. k Moves cursor up one line, same column. h Moves cursor back one character. l Moves cursor forward one character. RET Moves cursor to beginning of next line. O l Inserts text at beginning of line. Terminated by ESC key. o Opens new line below current line for text insertion. Terminated by ESC key. O Opens new line above the current line for text insertion. Terminated by the ESC key. DEL Overwrites last character during text insertion. ESC Stops text insertion. The ESC key on the DECstations is F11. Text Deletion Commands Moves cursor to start of current line. $ Moves cursor to end of current line. SPACE Moves cursor forward one character. nG Moves cursor to beginning of line n. Default is last line of file. O Moves cursor to 1st char. of line. :n Moves cursor to beg. of line n. b Moves cursor backward to beginning of previous word. x Deletes current character. dd Deletes current line. dw Deletes the current word. d) Deletes the rest of the current sentence. D, d$ Deletes from cursor to end of line. P Puts back text from the previous delete. Cut and Paste Commands e Moves the cursor backward to the end of the previous word. w Moves cursor forward to next word. n yy Puts current line in a buffer. Does not delete line from current position. p Places line in the buffer after the current position of the cursor. Exiting vi Repeats last / or ? pattern search. Changing Commands ZZ Exits vi and saves changes. cw Changes characters of current word until stopped with ESC. :wq Writes changes to current file and quits edit session. :q! Quits edit session (no changes) made). 11