<<

pico emacs ^ The Control (Ctrl) key ^ The Control (Ctrl) key The Escape(Esc) key Text Editors ^a Move to beginning of line ^c Current cursor position ^A Go to the beginning of the line ^d Delete character ^B Previous character Reference ^e Move to end of line ^C Insert space ^g Get ^D Delete next character ^I Insert a tab ^E Go to the end of the line Card ^j Justify (format) the text ^F Next character ^K ^k text Delete to end of line A helpful reference to Unix text editors on the CECS ^l Refresh screen ^N Next line Unix computers. ^o (save) the ^O Open (insert) new line ^r Read (include) another file ^P Previous line ^t check ^R Reverse search from cursor ^u Uncut text ^S Search from cursor ^ Next page ^T Transpose characters ^ (search for) text ^V Next screen ^X^I Include new file the cursor ^x and save the file http://www.cat.pdx.edu ^y Previous page ^X^S Save this buffer to disk ^X! Execute this command [email protected] ^Z Previous screen C Capitalize word D Delete next word B Backward word F Forward word G Go to line L Change word to lowercase N Front of paragraph P End of paragraph R Word replace U Change word to uppercase ^Z Write changes and exit < Beginning of file > End of file New line p After a yank (y) command, this will ^g Gives the line number of current / vim place the lines after the current position ^ The Control (Ctrl) key position ^u Scrolls screen up half a window P After a yank (y) command, this will ^w Delete the current word a Append text after current position place the lines before the current ^[ Escape; leave insert mode A Append text after the end of the line position :vi command mode b Move cursor to first character of r Replace current character :n Move to line n previous word s Deletes the current character and :q Quit vi cc Replaces all characters in the current appends text until next :q! Quit without making any changes line S Replaces all the characters in the :r fname ncc Replaces n characters current line Insert contents of fname at the cw Replaces the current word or tx Move cursor right to character just current position remaining characters in the word before character x :s/old_txt/new_txt/ ncw Replaces n words Tx Move cursor left to character just Replaces the first instance of old_txt C Replaces remaining characters in the after character x with new_txt in the current line current line u Undo effects of the last command :s/old_txt/new_txt/g Delete the current line U Restores the current line to its state Replaces every occurrence of ndd Delete n lines prior to the present changes old_txtwith new_txt on the current dw Delete a word from cursor through w Move cursor to first character in next line the next space or punctuation word :g/old_txt/s//new_txt/g ndw Delete n words x Deletes the current character Replaces every occurrence of old_txt D Deletes the current line from the ny Yanks (copies) n lines with new_txt in the entire buffer cursor to the end of the line ; Continue search for character :sh Temporarily return to the shell (use e Move cursor to end of current word specified by f, F, t or T command ^-d to exit shell and return to vi) fx Move cursor right to character x , Same as ; but searches for previous :w Write changes made Fx Move cursor left to character x occurrence :w fname G Move cursor to beginning of last line . Repeat action performed by previous Write entire edit file into file named nG Move cursor to beginning of line n command fname h Moves the cursor to the left one + Move cursor to beginning of next :x,z w fn character line Write the lines x thru z to file named H Move cursor to first line on screen - Move cursor up to beginning of next fn (Home) line :wq Write changes made and exit i Insert text at this position ( Move cursor to beginning of sentence :$ Move cursor to beginning of the last I Insert text at beginning of line ) Move cursor to beginning of next line j Moves the cursor down one line sentence :.,$d Deletes all lines from the current line k Moves the cursor up one line { Move cursor to beginning of to the end l Moves the cursor right one character paragraph /pattern L Move cursor to last line of screen } Move cursor to beginning of next Search for the specified “pattern” M Move cursor to middle line of screen paragraph ?pattern n Repeat last pattern search command @ Erase the current line of text Search backward for specified N Repeat last pattern search command ~ Changes the case of the current “pattern” in the opposite direction character o Add lines following the current Escape; leave insert mode position ^b Scrolls screen back a full window O Add lines above the current position ^d Scrolls screen down half a window ^f Scrolls screen forward full window