ubuntu16.04 vim-gnome

前端之家收集整理的这篇文章主要介绍了ubuntu16.04 vim-gnome前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

今天重装系统安装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?
本着“解决问题就好”的思想,安装ru by如下:

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.3$ sudo apt-get install ruby2.-dev
安之后,再安装 vim-gnome就OK了

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配置

猜你在找的Ubuntu相关文章