Describe the bug
I need to copy paste from system clipboard but for that "clipboard" feature needs to be activated. But I cannot seem to enable it.
To Reproduce
Expected behavior
Should have pasted the text what I copied from my browser. It is working fine on other editors.
Environment (please complete the following information):
```
pial@pialpc:~$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 24 2020 02:41:56)
Included patches: 1-1707
Compiled by pial@pialpc
Huge version without GUI. Features included (+) or not (-):
+acl -farsi +mouse_sgr +tag_binary
+arabic +file_in_path -mouse_sysmouse -tag_old_static
+autocmd +find_in_path +mouse_urxvt -tag_any_white
+autochdir +float +mouse_xterm -tcl
-autoservername +folding +multi_byte +termguicolors
-balloon_eval -footer +multi_lang +terminal
+balloon_eval_term +fork() -mzscheme +terminfo
-browse -gettext +netbeans_intg +termresponse
++builtin_terms -hangul_input +num64 +textobjects
+byte_offset +iconv +packages +textprop
+channel +insert_expand +path_extra +timers
+cindent +ipv6 -perl +title
-clientserver +job +persistent_undo -toolbar
-clipboard +jumplist +popupwin +user_commands
+cmdline_compl +keymap +postscript +vartabs
+cmdline_hist +lambda +printer +vertsplit
+cmdline_info +langmap +profile +virtualedit
+comments +libcall -python +visual
+conceal +linebreak -python3 +visualextra
+cryptv +lispindent +quickfix +viminfo
+cscope +listcmds +reltime +vreplace
+cursorbind +localmap +rightleft +wildignore
+cursorshape -lua -ruby +wildmenu
+dialog_con +menu +scrollbind +windows
+diff +mksession +signs +writebackup
+digraphs +modify_fname +smartindent -X11
-dnd +mouse -sound -xfontset
-ebcdic -mouseshape +spell -xim
+emacs_tags +mouse_dec +startuptime -xpm
+eval -mouse_gpm +statusline -xsmp
+ex_extra -mouse_jsbterm -sun_workshop -xterm_clipboard
+extra_search +mouse_netterm +syntax -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lm -ltinfo -ldl
- Ubuntu 20.04
- GNOME Terminal
**Additional context**
I installed it by running these commands.
make
sudo make install
```
I suppose this is the same as https://vi.stackexchange.com/questions/27434/clipboard-not-activated
This is a configuration issue. You need to compile your vim with the X11 (and a GUI) feature enabled, since the clipboard is a feature of the X11 server.
Please ask user questions on the vim_use mailinglist or use vi.stackexchange.com. This here is a bug tracker for problems with Vim. We cannot provide individual help here. Closing.
@chrisbra wrote:
You need to compile your vim with the X11 (and a GUI) feature enabled
You need X11 indeed, but a GUI is not needed.
I generally config my vim with:
$ ./configure --with-features=huge --enable-gui=none --enable-python3interp=yes
And I do have the +clipboard feature and +x11, but no GUI.
yes true, I didn't go into the details but probably should have. What I meant was basically, if you configure to use a gui, you have to link with the X11 libraries, as far as what linux/unix goes. But of course you are correct here.