Unix Text Editors Reference Card

Unix Text Editors Reference Card

pico emacs Unix ^ The Control (Ctrl) key ^ The Control (Ctrl) key <esc> 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 Help ^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 Cut 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 Write (save) the file ^O Open (insert) new line ^r Read (include) another file ^P Previous line ^t Spell check ^R Reverse search from cursor ^u Uncut text ^S Search from cursor ^v Next page ^T Transpose characters ^w Whereis (search for) text ^V Next screen ^X^I Include new file at the cursor ^x Exit 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 <esc> C Capitalize word <esc> D Delete next word <esc> B Backward word <esc> F Forward word <esc> G Go to line <esc> L Change word to lowercase <esc> N Front of paragraph <esc> P End of paragraph <esc> R Word replace <esc> U Change word to uppercase <esc> ^Z Write changes and exit <esc> < Beginning of file <esc> > End of file <return> New line p After a yank (y) command, this will ^g Gives the line number of current vi / 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 <ESC> :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 dd 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 <ESC> 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 .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us