顯示具有 VIM 標籤的文章。 顯示所有文章
顯示具有 VIM 標籤的文章。 顯示所有文章

星期一, 2月 17, 2014

[VIM] 如何做全選+複製

常常會用的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...
  • G
    • go the end of the file

其他你感興趣的文章

Related Posts with Thumbnails