常常會用的VIM指令
Reference:
http://stackoverflow.com/questions/1620018/vi-editor-copy-all-the-lines-to-clipboard
You should yank the text to the
* or + registers:
gg"*yG
Explanation:
gg- gets the cursor to the first character of the file
"*y- Starts a yank command to the register
*from the first line, until...
- Starts a yank command to the register
G- go the end of the file
沒有留言:
張貼留言
留個話吧:)