Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Move around:
  2.  
  3. h - left
  4. j - up
  5. k - down
  6. l - right
  7.  
  8. ctrl == ^
  9. ^E - scroll down the window
  10. ^Y - scroll up the window
  11. ^F - scroll down one page
  12. ^B - scroll up one page
  13. H - move the cursor to the top of the window
  14. M - move the cursor to the middle of the window
  15. L - move the cursor to the bottom of the window
  16. G - move to the bottom of the file
  17. gg - go to top of the file
  18.  
  19. NAVIGATE
  20. b - move to the beggining of the next word
  21. e - move one word to the right
  22. w - move to the next word?
  23.  
  24. TEXT OBJECTS AND MOTIONS
  25. --------------------------------
  26. TEXT OBJECTS
  27. w - words
  28. s - sentences
  29. p - paragraphs
  30. t - tags (available in XML/HTML files)
  31.  
  32. MOTIONS
  33. a - all
  34. i - in
  35. t - 'til
  36. f - find forward
  37. F - find backward
  38.  
  39. COMMANDS
  40. d - delete
  41. c - change (delete, then place in insert mode)
  42. y - yank (copy)
  43. p - paste
  44. v - visually selection
  45.  
  46.  
  47. dd/yy - delete/yank the current line
  48. D/C - delete/change until end of line
  49. ^/$ - move to the beggining/end of line
  50. I/A - move to the beggining/end of line and insert
  51. o/O - insert a new line above/below current line and insert
  52.  
  53. COMBINE THEM!
  54. {command}{text object or motion}
  55.  
  56. ex: diw - delete in word
  57. caw - change all word
  58. di[ - delete inside []
  59. da[ - delete inside [] and the [] too
  60. dt' - delete until '
  61. df' - delete until ' including '
  62. yi) - yank all text inside parenthes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement