Cut to the system clipboard from Vim on Ubuntu

后端 未结 8 1528
灰色年华
灰色年华 2020-12-02 13:34

I am using Ubuntu 12.04 Beta and Vim that has come with it. I am trying to use Vim to copy the content of a text file to Chrome browser. I have tried +, *

8条回答
  •  遥遥无期
    2020-12-02 14:13

    The output from vim --version should show something like this:

    Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
    

    and further down in the output you should see stuff like +Xll:

    +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim 
    +xsmp_interact +xterm_clipboard -xterm_save 
    

    That means your console vim can copy/paste to/from the X11 clipboard.

    Try apt-get install vim-gtk

提交回复
热议问题