linux – Ubuntu 16.04 LTS – 无法在VIM中启用xterm_clipboard
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux – Ubuntu 16.04 LTS – 无法在VIM中启用xterm_clipboard,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2475字,纯文字阅读大概需要4分钟。
内容图文
![linux – Ubuntu 16.04 LTS – 无法在VIM中启用xterm_clipboard](/upload/InfoBanner/zyjiaocheng/967/a2a0deba13a34c6db90e0d07fb03da34.jpg)
我经常使用VIM,之前已经能够获得xterm_clipboard support working by using a script provided in a separate post on 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我建立它.我该如何解决这个问题?
解决方法:
您应该已经注意到,源代码不再通过mercurial(hg)托管在Google代码上,并且已在提供的脚本生成的错误消息中迁移到GitHub.
您需要使用新的源代码树git,并且需要提前安装一些开发人员库.
代码清单
# Get the compile-dependencies of vim
sudo apt-get -y build-dep vim
# Install the "checkinstall" tool so the "make install" step is
# wrapped and the result is a .deb file that can be removed later by
# your package manager rather than having to hunt down every file deployed
# by "make install", which might not be possible if it overwrites existing
# system files.
sudo apt-get -y install checkinstall
# Install python dev
sudo apt-get -y install python-dev
# Install xorg dev
sudo apt-get -y install xorg-dev
# Install git
sudo apt-get -y install git
# Get the source
git clone https://github.com/vim/vim.git vim_source
# Remove ./configure cache in case we have to run this twice due to permissions
# related issues.
rm vim_source/src/auto/config.cache
# Compile it
cd vim_source
make clean
./configure --enable-perlinterp=dynamic --enable-pythoninterp=dynamic --enable-rubyinterp=dynamic --enable-cscope --enable-gui=auto --enable-gtk2-check --enable-gnome-check --with-features=normal --with-x --with-compiledby="DevNull <darkstar@/dev/null>" --with-python-config-dir=/usr/lib/python2.7/config-$(uname -m)-linux-gnu
# Build quickly (8 parallel jobs, hope your system doesn't get overwhelmed)
make -j8
# Need root to install
sudo checkinstall
内容总结
以上是互联网集市为您收集整理的linux – Ubuntu 16.04 LTS – 无法在VIM中启用xterm_clipboard全部内容,希望文章能够帮你解决linux – Ubuntu 16.04 LTS – 无法在VIM中启用xterm_clipboard所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。