- Reference: https://superuser.com/questions/235505/compiling-vim-with-xterm-clipboard-support
- Author: akira https://superuser.com/users/10674/akira
by looking at src/feature.h you can see that:
#ifdef FEAT_GUI
# ifndef FEAT_CLIPBOARD
# define FEAT_CLIPBOARD
# ifndef FEAT_VISUAL
# define FEAT_VISUAL
# endif
# endif
#endif
#if defined(FEAT_NORMAL) && defined(FEAT_VISUAL) \
&& (defined(UNIX) || defined(VMS)) \
&& defined(WANT_X11) && defined(HAVE_X11)
# define FEAT_XCLIPBOARD
# ifndef FEAT_CLIPBOARD
# define FEAT_CLIPBOARD
# endif
#endif- having --with-features=normal
- having --enable-gui
- having --with-x
- you should get your xterm-clipboard