我经常使用VIM,在以前我能够通过StackOverflow上的一个脚本提供的帖子来使+xterm_clipboard
支持工作。我重新安装了Ubuntu系统,并从Ubuntu 14.04.4 LTS (Wily)迁移到了Ubuntu 16.04 LTS (Xenial)。
# Get the compile-dependencies of vim
sudo apt-get build-dep vim
# If you haven't got mercurial, get it
sudo apt-get install mercurial
# Get the source
hg clone https://vim.googlecode.com/hg/ vim_source
# Compile it
cd vim_source
./configure \
--enable-perlinterp=dynamic \
--enable-pythoninterp=dynamic \
--enable-rubyinterp=dynamic \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--with-x \
--with-compiledby="Your Name <youremail@domain.com>" \
--with-python-config-dir=/usr/lib/python2.7/config
make && sudo make install
然而,这种方法已经不再可行,我无法使用",+,y将缓冲区复制到系统剪贴板。我在
.configure
输出中没有看到任何明显的问题,但是每当我构建它时,vim --version
总是显示-xterm_clipboard
。我该如何解决这个问题?