Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # Tips for vim
  2.  
  3. ### Select and copy
  4.  
  5. ##### Select and copy all lines from open file to clipboard (yank)
  6. #### **`g`** **`g`** **`"`** **`*`** **`G`**
  7. Explanation:
  8. * `gg`- get the cursor to the first character of the file
  9. * `"*y` - start a yank command to the register `*` from the first line, until..
  10. * `G`- go to the end of the file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement