Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 xclip 将我在 VISUAL 模式下选择的内容复制到 X 剪贴板。如何在我的 vimrc 中创建使用所选文本的映射?
我要执行的命令如下:
xclip -selection c {selected text}
试试这个:
vnoremap <F2> :w !xclip -selection c<CR><ESC>