让Vim支持在终端剪贴板共享

85941635 2012-06-06

查看Vim是否支持clipboard和xterm_clipboard

[root@Fedora fedora]# vim --version|grep clipboard
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
 -xterm_clipboard -xterm_save

#可以看出不支持这两个功能

[root@fedora fedora]# gvim --version|grep clipboard
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+xsmp_interact +xterm_clipboard -xterm_save

#gvim是支持的

http://www.vim.org/download.php下载源码重新编译,我下载的是vim-7.3.tar.bz2
./configure --prefix=/usr \             --sysconfdir=/etc \             --enable-tclinterp \             --enable-Pythoninterp \             --enable-perlinterp \             --enable-rubyinterp \             --enable-cscope \             --enable-multibyte \             --enable-xim \             --enable-gtk2-check \             --enable-fontset \             --with-x
[root@fedora vim73]# make
[root@fedora vim73]# make install

相关推荐

zycglboy / 0评论 2020-05-21