我经常使用 VIM,并且以前可以+xterm_clipboard
通过使用 StackOverflow 上的单独帖子中提供的脚本来获得支持。我已经在我的机器上重新安装了 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