Heres a description how to recompile vim --with-x using the slackbuild script.
mkdir -p ~/tmp/vimbuild
cd ~/tmp/vimbuild
# list the version of the dependency file ctags at slackware.com
Code:
lftp -e "cls -1 > /tmp/list; exit" "https://mirrors.slackware.com/slackware/slackware64-current/source/ap/vim/" && grep -m 1 -e "ctags" /tmp/list && rm /tmp/list
# current output is: ctags-5.8.tar.xz
# download the ctags file
Code:
wget https://mirrors.slackware.com/slackware/slackware64-current/source/ap/vim/ctags-5.8.tar.xz
# download vim.SlackBuild
Code:
wget https://mirrors.slackware.com/slackware/slackware64-current/source/ap/vim/vim.SlackBuild
# modify vim.SlackBuild for x functionality
Code:
sed -i -e '/--with-compiledby/i \ --with-x \\' -e 's/config_vim --without-x --disable-gui/config_vim --with-x --enable-gui/' vim.SlackBuild
chmod 755 vim.SlackBuild
su root
# build the vim package
./vim.SlackBuild
# remove vim if it is already installed
removepkg vim
#install the modified vim
installpkg /tmp/vim-*.txz
As user you can put these options in your .vimrc file
" turn on Ctrl+c,v keys to copy,paste
vnoremap <C-c> "+y
map <C-v> "+P
" copy to both the clipboard and primary
vnoremap <C-c> y :let @+=@"<CR>