How can I compile Vim with X-clipboard support?

Hello,
For me make install at editors/vim did not work as well. In one of the Makefiles in the upper folders I found the hint to cwd to /usr/ports/editors/vim/work/vim73/src and continue there.

After entering make config followed by make a new vim file is generated. This new vim in the src directory has GUI support and the X-clipboard works as well. I have just copied this file to /usr/local/bin. I hope it works for you as well.

Best regards,
Christoph
 
The problem with manually installing files is that they aren't recorded in the package database and nothing will help upgrade them.
 
Thank you, you both spent a time for me, I learn). But I do not want a GUI, I want that my console Vim can copy selected text into X-clipboard. I had previously read that I must change some options in the Makefile, something like "--x-clipboard".
 
Just for the record (for future myself):
/usr/ports/editors/vim/Makefile:
Code:
# Flavors {{{1
# FLAVORS are used to build various Vim GUIs. The default flavor (`vim') is
# console-only.
FLAVORS=    console gtk2 gtk3 motif x11 tiny
FLAVOR?=    ${FLAVORS:[1]}

Sadly there's no option to set these in config...
Solutions:
Bash:
make FLAVOUR=x11 deinstall reinstall clean
This won't presist during updates, so instead:
add to /etc/make.conf:

Makefile:
.if ${.CURDIR:C/.*\/editors\/vim//} == ""
FLAVOR=x11
.endif
 
Back
Top