Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile vim with clipboard and xterm

Tags:

vim

clipboard

I want to compile the current version of vim with:

+clipboard +xterm_clipboard and ruby support 

But every time I compile it the clipboard and the xterm_clipboard options aren't enabled.

Is there a lib needed or must I add any other options in the configuration step?

./configure \
--enable-rubyinterp=dynamic \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--with-x 
 make && sudo make install
like image 425
bulleric Avatar asked Jul 10 '12 14:07

bulleric


2 Answers

You can see if configure manage to find a working X lib by checking the output of (or scroll through the output of configure in your terminal):

$ grep X11 src/auto/config.h
#define HAVE_X11

If configure failed then you'll see:

$ grep X11 src/auto/config.h
/* #undef HAVE_X11 */

You'll need to install the appropriate X development library like xlib and xtst for --with-x to work.

On ubuntu it should be enough to install libx11-dev and libxtst-dev.

like image 175
holygeek Avatar answered Nov 20 '22 02:11

holygeek


ubuntu18.04.4

sudo apt install libx11-dev libxtst-dev libxt-dev libsm-dev libxpm-dev

./configure --enable-python3interp=dynamic --prefix=$HOME/.local --enable-rubyinterp=dynamic --enable-gtk2-check --enable-gnome-check --with-features=huge --with-x

make install

./src/vim ---version | grep clip

like image 44
jiahut Avatar answered Nov 20 '22 01:11

jiahut