Table of Contents

How to enable paste from clipboard in vim on linux

Let us first run the update...

sudo apt-get update
sudo apt-get install build-essential

Install the following packages...

sudo apt-get install libncurses5-dev libgtk-3-dev libx11-dev libxtst-dev libxt-dev

Let us install vim from GIT...

git clone https://github.com/vim/vim.git
cd vim

Run configure...

./configure --with-features=huge --enable-gui=gtk3 --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes --with-python3-command=python3 --enable-perlinterp=yes --enable-luainterp=yes --enable-gtk3-check --with-x --enable-cscope --prefix=/usr

Now run make...

make
sudo make install

Now run vim --version to see if +xterm_clipboard and +clipboard features are enabled...

vim --version

Related Posts