vim編輯器 複製全部內容到剪切板

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
http://stackoverflow.com/questions/1620018/copy-all-the-lines-to-clipboard
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章