Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Move around:
- h - left
- j - up
- k - down
- l - right
- ctrl == ^
- ^E - scroll down the window
- ^Y - scroll up the window
- ^F - scroll down one page
- ^B - scroll up one page
- H - move the cursor to the top of the window
- M - move the cursor to the middle of the window
- L - move the cursor to the bottom of the window
- G - move to the bottom of the file
- gg - go to top of the file
- NAVIGATE
- b - move to the beggining of the next word
- e - move one word to the right
- w - move to the next word?
- TEXT OBJECTS AND MOTIONS
- --------------------------------
- TEXT OBJECTS
- w - words
- s - sentences
- p - paragraphs
- t - tags (available in XML/HTML files)
- MOTIONS
- a - all
- i - in
- t - 'til
- f - find forward
- F - find backward
- COMMANDS
- d - delete
- c - change (delete, then place in insert mode)
- y - yank (copy)
- p - paste
- v - visually selection
- dd/yy - delete/yank the current line
- D/C - delete/change until end of line
- ^/$ - move to the beggining/end of line
- I/A - move to the beggining/end of line and insert
- o/O - insert a new line above/below current line and insert
- COMBINE THEM!
- {command}{text object or motion}
- ex: diw - delete in word
- caw - change all word
- di[ - delete inside []
- da[ - delete inside [] and the [] too
- dt' - delete until '
- df' - delete until ' including '
- yi) - yank all text inside parenthes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement