Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dhanifudin opened this issue Apr 14, 2014 · 10 comments
Open

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

dhanifudin opened this issue Apr 14, 2014 · 10 comments

Comments

@dhanifudin
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

@svermeulen
Copy link
Owner

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

@dhanifudin
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

@svermeulen
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants