- Cursor Movement:
- w - word ahead
- b - word back
- ( - sentence back
- ) - sentence forward
- { - paragraph above
- } - paragraph below
- Searching for Text:
- /test - search downwards for "test"
- ?test - search upwards for "test"
- n/N - continue search the same/opposite direction
- Undoing Changes:
- u - undo most recent change
- Ctrl + r redo last "undo" change
- U - undo all changes to the current line
- Change, Delete and Yank
Change Delete Yank Paste Line cc dd yy p blow cursor
P above cursorLetter cl dl yl p after cursor
P beofer cursorWord cw dw yw p after cursor
P beofer cursor
- Tricks:
- dtx - delete from cursor to the letter x
- rx - replace a character with x
- x - delete a character
- 5dd - delete 5 lines
- 5yy - copy 5 lines
- 5x - delete 5 charactersR - replace character-for-character until
- a - appen after the cursor
- i - insert before the cursor
- A - append to end of line
- I - insert at beginning of line
- o - open a line below
- O - open a line above
No comments:
Post a Comment