svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

can't paste for different vim session on archlinux #23

Open dhanifudin opened 10 years ago

dhanifudin commented 10 years ago

This issue maybe related to system configuration, I can easy copy and paste using vim-easyclip on osx but not on archlinux. This is my vim version on archlinux VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 2 2014 10:02:55) Included patches: 1-135 Compiled by Arch Linux Huge version without GUI. Features included (+) or not (-): +acl +farsi +mouse_netterm +syntax +arabic +file_in_path +mouse_sgr +tag_binary +autocmd +find_in_path -mouse_sysmouse +tag_old_static -balloon_eval +float +mouse_urxvt -tag_any_white -browse +folding +mouse_xterm -tcl ++builtin_terms -footer +multi_byte +terminfo +byte_offset +fork() +multi_lang +termresponse +cindent +gettext -mzscheme +textobjects -clientserver -hangul_input -netbeans_intg +title -clipboard +iconv +path_extra -toolbar +cmdline_compl +insert_expand +perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace +cursorbind +listcmds +quickfix +wildignore +cursorshape +localmap +reltime +wildmenu +dialog_con -lua +rightleft +windows +diff +menu -ruby +writebackup +digraphs +mksession +scrollbind -X11 -dnd +modify_fname +signs -xfontset -ebcdic +mouse +smartindent -xim +emacs_tags -mouseshape -sniff -xsmp +eval +mouse_dec +startuptime -xterm_clipboard +ex_extra +mouse_gpm +statusline -xterm_save +extra_search -mouse_jsbterm -sun_workshop -xpm system vimrc file: "/etc/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim -lm -lncurses -lelf -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
I don't see any requirement vim dependency mentioned on readme for System Clipboard Sync features.

svermeulen commented 10 years ago

Which register does the system clipboard get mapped to on archlinux? Easy-clip assumes that it's the * register. If you copy outside vim on archlinux, then enter vim, which register contains the text that you copied outside of it?

dhanifudin commented 10 years ago

how can I get that information? I copy outside vim, when paste text the output is the previous yank from vim. But when I copy text using shift-insert, I get the last copied text. sorry, I'm little bit confuse about register concept.

svermeulen commented 10 years ago

No problem. Type :reg and then see if you can find the text that you want to paste. The register will be the characters on the left. (eg: "*)

dhanifudin commented 10 years ago

I find multiple register "* and "+ that contains same text

svermeulen commented 10 years ago

What prints when you run :echo EasyClip#GetDefaultReg() ?

dhanifudin commented 10 years ago

I get * symbol on archlinux, when I test on osx I get * symbol too. I've tried on different terminal emulator and gvim version, but the result is same.

svermeulen commented 10 years ago

I think I have to reproduce it properly to fix this otherwise I'm just guessing. I really need to test more on linux in general so I'll take a look at this tomorrow. Thanks for the report.

dhanifudin commented 10 years ago

what's your linux setup? so I can have same environment to help testing

svermeulen commented 10 years ago

I've been able to reproduce it. I see the issue now. I need to do something similar to what fake clip (http://www.vim.org/scripts/script.php?script_id=2098) is doing for these cases (which apparently involves using xclip)

svermeulen commented 10 years ago

Unfortunately I'm not able to fix this until next weekend but I know what I need to do now at least