Installing vim with clientserver

This article was published 5 years ago. Due to the rapidly evolving world of technology, some concepts may no longer be applicable.

To use vimrunner, your installation of Vim needs to be compiled with clientserver support.

To check if your vim installation has it already

[[ -n "`vim --version | grep client`" ]] && echo "Installed" || echo "Not installed"

If it does, you don’t need the rest of the psot

To do this, follow these instructions:

hg clone /tmp/vim
cd /tmp/vim
./configure --with-features=huge--enable-gui=auto
sudo make install

Open a new terminal and run the command above again to see if clientserver is there. If it isn’t, you might need some dev dependencies installed.


sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev


sudo yum install libXt.i686 libXt-devel.i686 \
libXpm.i686 libXpm-devel.i686 \
libX11.i686 libX11-common.noarch libX11-devel.i686 \
ghc-cairo-devel.i686  cairo.i686   \
libgnomeui-devel.i686 \
ncurses.i686 ncurses-devel.i686  ncurses-libs.i686 ncurses-static.i686 \
ghc-gtk-devel.i686 gtk+-devel.i686 \
gtk2.i686  gtk2-devel.i686 \
atk-devel.i686 atk.i686 \
libbonoboui.i686 libbonoboui-devel.i686 

Thoughts on this post

[…] If it doesn’t, read this post […]

M.J.G. 2018-09-06

On Fedora, just use “vimx” from the vim-enhanced package. It’s the CLI version of vim-X11.

Jack Walton 2018-12-12

In Vim 8.0 running ‘vim –version’ returns a list of features. If a feature is included it is prefixed by “+” and if not it is prefixed by “-“.

So, for Vim 8.0 the command [[ -n “`vim –version | grep client`” ]] && echo “Installed” || echo “Not installed” will always return “installed”.

Of course with this the fix is easy: [[ -n “`vim –version | grep +client`” ]] && echo “Installed” || echo “Not installed”

Leave a comment?