Hi , I was having problem with cut-paste selections from X <-----> Windows for gvim (6.2) , and this is the reply I got from the RealVNC team . So is there a way to solve this in gvim ?
Thanks in advance ! -Ujjal ---------- Forwarded message ---------- From: James Weatherall <[EMAIL PROTECTED]> Date: Nov 3, 2006 9:59 PM Subject: RE: Xvnc cut paste problem To: Ujjal Bose <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Hi Ujjal, It sounds like gvim doesn't set the timestamp on the X selection correctly when it sets it, so vncconfig doesn't think it's changed. Selecting text in another X application, then selecting the desired text in gvim should cause vncconfig to see the selection ownership change and to then send the gvim text to the viewer. Cheers, Wez @ RealVNC Ltd.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ujjal Bose Sent: 01 November 2006 19:09 To: [EMAIL PROTECTED] Subject: Xvnc cut paste problem For the laste few days my cut paste selections from Unix->Windows is not working properly but Windows->Unix works perfectly. I was using "autocutsel" to enable cut-paste between various X11 selections, and also had a line for "vncconfig -nowin -iconic" in my VNC xstartup file but nothing seems to help. 0) I am using Xvnc 4.2.1 server in my Linux m/c and TightVNC viewer on Windows XP side. 1) A "Copy" selection from a unix application (gvim) seems to work intermittently. 2) If I do a mouse based visual selection (also called PRIMARY selection in X11) from my gvim windows , and paste it in Windows notepad, only a partial paste happens for the first time, and then onwards , the same stuff is pasted over and over again, in spite of selecting some other text in gvim. 3) Pasting from xterm->Notepad(Windows) seems to work correctly. 4) I even started a new VNC session on another Linux m/c (same xstartup file) but didnt help. 5) Another thing I observed : from gvim , irrespective of my selection method ("copy" or mouse based) , the paste in Notepad seems to work only (partially in case of mouse selection and fully in case of "Copy") for the first time. If I select something else now and then try to paste , the last stuff only gets pasted. BUT IF I COPY BACK SOME TEXT FROM WINDOWS->UNIX and then try again , IT WORKS FOR THE NEW SELECTION , but again , only for once, till I repeat the process. 6) Again, pasting from xterm always works perfectly. Any help appreciated. -Ujjal ##### My xstartup file #################### vncconfig -nowin & if ($OSTYPE == "Linux") then # Linux xrdb $HOME/.Xresources \xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #/usr/bin/gnome-session & #/usr/bin/startkde & #fvwm2 & /home/ubose/local/bin/startxfce4 & xhost + else # sun xrdb $HOME/.Xresources xrdb -load glx \xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & xsetroot -solid grey #/usr/dt/bin/dtwm& /usr/dt/bin/Xsession & xhost + endif #######################################