Matt Fiddles

Life's so vast, there's just so much to do...

User Tools

Site Tools


Sidebar

"`Maybe somebody here tipped off the Galactic Police,' said Trillian. `Everybody saw you come in.'
`You mean they want to arrest me over the phone?' said Zaphod, `Could be. I'm a pretty dangerous dude when I'm cornered.'
`Yeah,' said a voice from under the table [Ford's now completely rat-arsed at this point], `you go to pieces so fast people get hit by the shrapnel.'"

- Zaphod getting paranoid over a phone call.



Where will you go today?

“It's faith in something and enthusiasm for something that makes a life worth living.”
computers:text-editors

Text Editors

vi

Quick reference: 1)

  • i → Change to input (edit) mode
  • Esc → Change to command mode (save, move, delete, etc)
    • x → Delete character
    • u → Undo
    • dw → Delete word
    • dd → Delete line
    • Move cursor
      • l → right
      • k → up
      • j → down
      • h → left
    • Control+f → Scroll down one page
    • Control+b → Scroll up one page
    • w → Move forward one word at a time
    • b → Move backward a word at a time
    • $ → Move to the end of the line
    • 0 → Move to the beginning of the line
    • H → Move to the top line of the screen
    • L → Move to the last line of the screen
    • G → Move to the last line of the file
    • ZZ → Exit and Save a file
    • :w → Save a file
    • :q → Save and Exit
    • :q! → Discard file changes and quit
1)
For more info on vi see How to Use vi and How to Use the vi Editor
computers/text-editors.txt · Last modified: Dec 5, 2013 (5 years ago) by Matt Bagley