Advertisement
Guest User

Untitled

a guest
Feb 8th, 2015
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.85 KB | None | 0 0
  1. Febuary 3rd, 2015 Notes
  2.  
  3. vi - Moded Editing
  4.  
  5. Command                 Insert
  6.  
  7. - Copy/Paste            - Inserting Text
  8. - Search
  9. - Saving/Loading
  10. - Exit
  11.  
  12. vi fileName (Enters into VI/VIM)
  13.  
  14. Simple VI Commands
  15.  
  16. Insert Mode - i
  17. Return To Command Mode - [esc]
  18.  
  19. Navigation (Command Mode)
  20. -------------------------
  21.  
  22. // By Character
  23. h - Left        #h --> Does it that number of times (Applies to All)
  24. j - Down
  25. k - Up
  26. l - Right
  27.  
  28. // By Word
  29. w, W - By Word (Skips To Next Word)
  30. b, B - Back Word(Skips To Previous Word)
  31.  
  32. // By Line
  33. ^ - Jumps To Start Of Line
  34. $ - Jumps To End Of Line
  35. #G - Jumps To Specific Line (Replace # w/ a number)
  36.  
  37. Editing (Command Mode)
  38. ---------------------
  39.  
  40. // Change By Word
  41. cw, cW - [Change Word] Deletes Word (Place cursor at the start of the word)
  42. cb, cB - [Change Word] Deletes Word (Place cursor at the end of the word)
  43.  
  44. // Delete By Character
  45. x, X - Deletes A Character
  46.  
  47. // Line Manipulation
  48. dd - Deletes The Line (Cut By Line)
  49. p - Pastes The Deleted Line
  50.  
  51. // By Character Substitution
  52. s - Deletes The Current Character And Puts You Into Insert Mode
  53. . - Repeats The Last Command
  54.  
  55. // Entering Insert Mode
  56. i - Current Cursor Position
  57. a - Appending (Moving forward after cursor position)
  58. I - Snaps To Start Of Line
  59. A - Appends To End Of Line
  60. o - Open New Line Below Current Line
  61. O - Open New Line Above Current Line
  62.  
  63. // Programming Use
  64. >> - Indent
  65. << - De-indent
  66. /* - Search For (Replace * with a character or even string)
  67. n - Next
  68. N - Previous
  69.  
  70. Extended Commands
  71. -----------------
  72.  
  73. :w fileName - Write (Writes to a specific file name)
  74. :q - Quit (Quits the application [Requires A Save])
  75. :q! - Forces A Quit (Quits the application [Doesn't Require Saving])
  76. :wq - Save Then Quit
  77. :.co0 - Copy That Current Line To Line 0 (Change 0 To Anything)
  78. :%s/a/the - Search and replace (Replace a with anything and the)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement