Sample Header Ad - 728x90

Recompiling Vim with +clipboard on Arch Linux (DWM/X11)

1 vote
1 answer
75 views
I use Arch Linux + DWM on the X Window System. I can't copy from Vim to an external application, and the vim --version command returns -xterm_clipboard. As I understand it, I need to recompile my Vim and add clipboard support into the config file, but I don't know where to find it. Is it the ~/.vimrc file? I can't find the original PKGBUILD in my ~/vim/ directory either. I've tried to use **pacbuilder-svn** and ran:
$ pacbuilder --install --edit vim vim-runtime
But the script doesn't ask me whether I want to edit the PKGBUILD file; it just builds the packages and that's it. I've also tried to use **devtools** and ran:
$ sudo pkgctl repo clone https://github.com/vim/vim.git 
But it says:
failed to clone https://github.com/vim/vim.git 
How can I recompile my Vim with clipboard support? I would be grateful for your help.
Asked by Bernadette (13 rep)
Jun 8, 2025, 06:33 AM
Last activity: Jun 8, 2025, 07:53 AM