Cheatography
https://cheatography.com
Controls:w | Save | :x | Save & Exit | :q | Exit if no changes made | :q! | Exit & discard any changes |
Navigationh | Cursor left | j | Cursor down | k | Cursor up | l | Cursor right | w | Next Word | W | Next Blank delimited word | b | Start of word | B | Start of blank delimited work | e | End of word | E | End of blank delimited work | 0 | Beginning of line | $ | End of line | 1G | Start of file | G | End of file | :n | nth line |
Searching/string | Search forward for string | /?string | Search backwards for string | n | Go to next match | N | Go to previous match | :set ic | Ignore case while searching | set noic | Case-sensitive searching | * | Search for next instance of current word | # | Search for last instance of current word |
| | Insertingi | Insert before cursor | a | Append after cursor | A | Append after line | o | Add new line after current line | O | Add new line before current line | r | Overwrite one character | R | Overwrite many characters | C | Rewrite the rest of line | cc | Rewrite the whole line | cw | Rewrite the word | yw | Copy word | yy | Copy line | p | Put copied line |
Deletingx | Delete character to right of cursor | X | Delete character to left of cursor | D | Delete the rest of line | dd | Delete the line | dw | Delete the word |
Otheru | Undo last change | U | Undo all changes to line | J | Join lines | nJ | Join next n lines | . | Repeat last command |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets