Think before you speak, read before you think.

vim 寄存器 与系统剪切板互通

by

in

mac OSX 系统,按 v 选择选区,将选区内容写入 pbcopy 里

:w !pbcopy

从剪切板插入到文档,定位到想要插入的行,系统剪切板的文字会插入到当前行后面

:r !pbpaste

http://vim.wikia.com/wiki/Accessing_the_system_clipboard


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *