Yank entire file
I often write something in gVim, then need to copy-paste it into another application.
Is there an easy way to yank the entire file? I usually do something like this
ggVG"+y
(Go to top, visual-line mode, go to bottom, yank)
But is there a better way that I'm missing out on?
我使用以下指令:%y+
ggyG
(go to the first line, yank to the last line)
Edit: Ah, system clipboard. Doesn't exactly roll off the fingers, but: gg"+yG
旧vi中的工作解决方案是:r filename
新文件中的:r filename
。
上一篇: Zend框架自动完成
下一篇: 翻开整个文件