我首先提到,我已经阅读了几条关于此的建议,包括How to make vim paste from (and copy to) system's clipboard?,https://superuser.com/questions/187537/copy-to-system-clipboard-instead-of-vim-buffer,https://askubuntu.com/questions/172265/how-to-use-a-common-clipboard-for-vim-and-unity和http://vim.wikia.com/wiki/Accessing_the_system_clipboard,但我一直无法找到解决方案。从gvim复制不起作用,复制到
所以,我的问题是,复制到使用gvim通过X11剪贴板工作,但我不能从gvim的复制工作,不管是什么。我已验证我的版本在编译X11剪贴板支持目前我已经添加了以下内容的.vimrc:
set clipboard=unnamedplus,autoselect
set guioptions+=a
set paste
set go+=a
简单唬弄不工作,也不做“+ y或” * Y。我用xclip验证了剪贴板中没有任何内容。我曾尝试几个其他参数的变化,以及包括
我使用Ubuntu 12.04和GVIM --version说
$ VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:22:36)
Included patches: 1-429
Modified by [email protected]
Compiled by [email protected]
Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap +lua +menu +mksession +modify_fname
+mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm
-mouse_sysmouse +mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme
+netbeans_intg +path_extra +perl +persistent_undo +postscript +printer +profile
+python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title
+toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim
+xsmp_interact +xterm_clipboard -xterm_save
所以这会是别的东西吗?有任何想法吗?这是推动我狂热,不要介意让我感到愚蠢,因为我在gedit中打开文件,如果我需要复制的东西例如一封电邮。
我试过用“+ p”,* p,yy,用视觉模式标记并使用鼠标。我试图粘贴中间点击和Ctrl + v。但正如我所说,我XCLIP检查,并没有什么在剪贴板上,以便后者甚至没有关系。 – Makis