概述
今天重装系统安装VIM,发现系统和vim之间的剪切板不能用了。网上说ubuntu默认的vim不带系统剪切板交互的功能。需要安装vim-gnome。但是在安装的过程中出现以下的问题:
Do you want to continue? [Y/n] y WARNING: The following packages cannot be authenticated! libruby2.3 Install these packages without verification? [y/N] y Err:1 http://ppa.launchpad.net/a-v-shkop/chromium/ubuntu xenial/main amd64 libruby2.3 amd64 2.3.3-1bbox1~trusty2 404 Not Found E: Failed to fetch http://ppa.launchpad.net/a-v-shkop/chromium/ubuntu/pool/main/r/ruby2.3/libruby2.3_2.3.3-1bbox1~trusty2_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
icebug@localhost:~$ sudo apt-get -y install software-properties-common icebug@localhost:~$ sudo apt-add-repository ppa:brightbox/ruby-ng icebug@localhost:~$ sudo apt-get updateicebug@localhost:~$ sudo apt-get -y install ruby2.3icebug@localhost:~$ sudo apt-get install ruby2.3-dev |
lin@lin:~/ali/container/container_config/json-c-test/test1$ sudo apt-get install vim-gnome Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libglade2-0 libgnome-2-0 libgnome2-0 libgnome2-bin libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0 vim-gui-common Suggested packages: libbonobo2-bin desktop-base gnome-icon-theme libgnomevfs2-bin libgnomevfs2-extra gamin | fam gnome-mime-data vim-doc fonts-dejavu vim-gnome-py2 | vim-gtk-py2 | vim-gtk3-py2 | vim-athena-py2 The following NEW packages will be installed: libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libglade2-0 libgnome-2-0 libgnome2-0 libgnome2-bin libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0 vim-gnome vim-gui-common 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/2,534 kB of archives. After this operation, 11.1 MB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package libbonobo2-common. (Reading database ... 217840 files and directories currently installed.) Preparing to unpack .../libbonobo2-common_2.32.1-3_all.deb ... |
“+y表示从vim复制到系统剪切版,
“+p表示从外部文件(系统剪切版)粘帖到vim,
“+d表示剪切.
附:vim配置
vim配置
最后
以上就是老迟到夏天为你收集整理的ubuntu16.04 vim-gnome的全部内容,希望文章能够帮你解决ubuntu16.04 vim-gnome所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复