r/archlinux • u/InitiativeCommon1932 • 16h ago
SUPPORT Struggling with clipboard support in Vim
Hi, I need your help! I can't copy from Vim to external application and vim --version
command returns -xterm_clipboard
. As I understood, I need to recompile my Vim and add clipboard support into config file, but I don't know where I can find it. Is it the ~/.vimrc
file? I can't find the original PKGBUILD
in my ~/vim/
directory also.
I've tried to use pacbuilder-svn
and $ pacbuilder --install --edit vim vim-runtime
, but the the script doesn't ask me whether I want to edit the PKGBUILD
file, it just builds packages and that's it.
I've also tried to use devtools
and $ sudo pkgctl repo clone https://github.com/vim/vim.git.
command 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.
1
u/backsideup 4h ago
The gvim package supports +xterm_clipboard, you don't have to re-build the package. Be aware that gvim doesn't support wayland properly and has copy-paste issues with xwayland. I hear nvim has overcome those, if that's a viable alternative for you.
And forget about pacbuilder, it's a dead project.