查看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