Matt Fiddles

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

User Tools

Site Tools


Sidebar

Princess Leia, getting her first look at the Millennium Falcon:

"You came in that thing? You're braver than I thought!"



Where will you go today?

Ben (Obi-Wan) Kenobi: "Use the Force, Luke!"
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