tmux 2.4 does not support vim yank and paste?

160 views
Skip to first unread message

Xudong Sun

unread,
Apr 21, 2017, 6:37:36 AM4/21/17
to tmux-...@googlegroups.com
Hi, 
    I updated tmux from 1.8 to 2.4 and now the problem is if I open a R file and try to copy one existing line and paste them in another place, the paste result is something else. But yank and paste does work if I input something new to the file.
    Anyone has an idea if this is because the tmux version ?

Thanks

Nelo-Thara Wallus

unread,
Apr 21, 2017, 6:43:26 AM4/21/17
to Xudong Sun, tmux-...@googlegroups.com
Please explain your problem _exactly_, including which buttons you're
using and if you mean another vim instance by 'paste them in another
place'.

Without specific information on your problem we cannot give you educated
guesses.

- Nelo
> --
> You received this message because you are subscribed to the Google Groups "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
> To post to this group, send an email to tmux-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
/"\ ASCII Ribbon Campaign
\ / - against HTML emails
X - against proprietory attachments
/ \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

Xudong Sun

unread,
Apr 21, 2017, 7:37:35 AM4/21/17
to tmux-...@googlegroups.com
Hi, 
   Thanks for the response.
   Ok, the process is 
   I logged into a cluster, then I type tmux, then I type vim, then I press F1 to open nerdtree and use 
"t" to open a tab for a file I want to edit. In this file, I select a line using "v" and type "y" or "yy", then I type "p" in another line of the same file.  Something else will be pasted rather than the line I selected.

Nicholas Marriott

unread,
Apr 21, 2017, 7:59:21 AM4/21/17
to Xudong Sun, tmux-...@googlegroups.com

If you are copying and pasting entirely within vim, tmux has very little
to do with it. Are you sure the actual paste is wrong and it isn't just
being displaying the wrong thing?


On Fri, Apr 21, 2017 at 11:37:23AM +0000, Xudong Sun wrote:
> Hi,A
> A A Thanks for the response.
> A A Ok, the process isA
> A A I logged into a cluster, then I type tmux, then I type vim, then I
> press F1 to open nerdtree and useA
> "t" to open a tab for a file I want to edit. In this file, I select a line
> using "v" and type "y" or "yy", then I type "p" in another line of the
> same file.A Something else will be pasted rather than the line I
> selected.
> On Fri, 21 Apr 2017 at 12:43 Nelo-Thara Wallus <ne...@wallus.de> wrote:
>
> Please explain your problem _exactly_, including which buttons you're
> using and if you mean another vim instance by 'paste them in another
> place'.
>
> Without specific information on your problem we cannot give you educated
> guesses.
>
> - Nelo
>
> On 2017-04-21 10:37, Xudong Sun wrote:
> > Hi,
> >A A A I updated tmux from 1.8 to 2.4 and now the problem is if I open
> a R
> > file and try to copy one existing line and paste them in another
> place, the
> > paste result is something else. But yank and paste does work if I
> input
> > something new to the file.
> >A A A Anyone has an idea if this is because the tmux version ?
> >
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "tmux-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to tmux-users+...@googlegroups.com.
> > To post to this group, send an email to tmux-...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> /"\A ASCII Ribbon Campaign
> \ /A - against HTML emails
> A XA A - against proprietory attachments
> / \A http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tmux-users+...@googlegroups.com.
> To post to this group, send email to tmux-...@googlegroups.com.

Xudong Sun

unread,
Apr 21, 2017, 8:11:07 AM4/21/17
to Nicholas Marriott, tmux-...@googlegroups.com
I think it has nothing to do with display, since if the save the file and close and open it again, the displayed line are the same.

in my .tmux.conf file,  I found out two lines that is not supported by tmux 2.4
"
bind -t vi-copy v begin-selection # `v` begins a selection                       bind -t vi-copy V rectangle-toggle # `V` toggle line- and columnwise selection    
"
After commented them out, the yank for multiple lines in tmux vim still does not work, but yank one line works now 

Nicholas Marriott

unread,
Apr 21, 2017, 8:44:15 AM4/21/17
to Xudong Sun, tmux-...@googlegroups.com
So you are talking about copy and paste from tmux copy mode, not from vim?



On Fri, Apr 21, 2017 at 12:10:56PM +0000, Xudong Sun wrote:
> I think it has nothing to do with display, since if the save the file and
> close and open it again, the displayed line are the same.
> in my .tmux.conf file, A I found out two lines that is not supported by
> tmux 2.4
> "
> bind -t vi-copy v begin-selection # `v` begins a selection A A A A A
> A A A A A A bind -t vi-copy V rectangle-toggle # `V` toggle line-
> and columnwise selection A A
> "
> After commented them out, the yank for multiple lines in tmux vim still
> does not work, but yank one line works nowA
> On Fri, 21 Apr 2017 at 13:59 Nicholas Marriott
> <nicholas...@gmail.com> wrote:
>
> If you are copying and pasting entirely within vim, tmux has very little
> to do with it. Are you sure the actual paste is wrong and it isn't just
> being displaying the wrong thing?
>
> On Fri, Apr 21, 2017 at 11:37:23AM +0000, Xudong Sun wrote:
> >A A Hi,A
> >A A AA A Thanks for the response.
> >A A AA A Ok, the process isA
> >A A AA A I logged into a cluster, then I type tmux, then I type vim,
> then I
> >A A press F1 to open nerdtree and useA
> >A A "t" to open a tab for a file I want to edit. In this file, I
> select a line
> >A A using "v" and type "y" or "yy", then I type "p" in another line
> of the
> >A A same file.AA Something else will be pasted rather than the line
> I
> >A A selected.
> >A A On Fri, 21 Apr 2017 at 12:43 Nelo-Thara Wallus <ne...@wallus.de>
> wrote:
> >
> >A A A Please explain your problem _exactly_, including which buttons
> you're
> >A A A using and if you mean another vim instance by 'paste them in
> another
> >A A A place'.
> >
> >A A A Without specific information on your problem we cannot give
> you educated
> >A A A guesses.
> >
> >A A A - Nelo
> >
> >A A A On 2017-04-21 10:37, Xudong Sun wrote:
> >A A A > Hi,
> >A A A >AA AA A I updated tmux from 1.8 to 2.4 and now the problem
> is if I open
> >A A A a R
> >A A A > file and try to copy one existing line and paste them in
> another
> >A A A place, the
> >A A A > paste result is something else. But yank and paste does work
> if I
> >A A A input
> >A A A > something new to the file.
> >A A A >AA AA A Anyone has an idea if this is because the tmux
> version ?
> >A A A >
> >A A A > Thanks
> >A A A >
> >A A A > --
> >A A A > You received this message because you are subscribed to the
> Google
> >A A A Groups "tmux-users" group.
> >A A A > To unsubscribe from this group and stop receiving emails
> from it, send
> >A A A an email to tmux-users+...@googlegroups.com.
> >A A A > To post to this group, send an email to
> tmux-...@googlegroups.com.
> >A A A > For more options, visit https://groups.google.com/d/optout.
> >
> >A A A --
> >A A A /"\AA ASCII Ribbon Campaign
> >A A A \ /AA - against HTML emails
> >A A A A XAA A - against proprietory attachments
> >A A A / \AA http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
> >
> >A A --
> >A A You received this message because you are subscribed to the
> Google Groups
> >A A "tmux-users" group.
> >A A To unsubscribe from this group and stop receiving emails from it,
> send an
> >A A email to tmux-users+...@googlegroups.com.
> >A A To post to this group, send email to tmux-...@googlegroups.com.
> >A A For more options, visit https://groups.google.com/d/optout.

Michael Daines

unread,
Apr 21, 2017, 12:11:33 PM4/21/17
to tmux-...@googlegroups.com
I am having the same issue. I get a warning when I start up tmux that points to the problems:

.tmux.conf:61: invalid or unknown command: bind -t vi-copy 'v' begin-selection
.tmux.conf:62: invalid or unknown command: bind -t vi-copy 'y' copy-selection
.tmux.conf:81: invalid or unknown command: bind-key -t vi-copy v begin-selection

I was using these to copy and paste from the tmux buffer (sorry if wrong terminology). Basically, I could jump into the navigation mode to scroll back through the terminal history and copy and paste the selection. I use this feature all the time.

Here is a link to my full .tmux.conf file: https://github.com/defndaines/env/blob/master/.tmux.conf



On Fri, Apr 21, 2017 at 8:58 AM, <tmux-...@googlegroups.com> wrote:
Thomas Sattler <sat...@med.uni-frankfurt.de>: Apr 21 11:58AM +0200

Hi Nicholas,
 
I used to bind keys to switch/move windows/panes to the root-table.
Until 2.3 these worked, even within copy-mode. In 2.4 they stopped
working (when in copy-mode).
...more
Nicholas Marriott <nicholas...@gmail.com>: Apr 21 12:38PM +0100

Yeah this change isn't ideal/ Perhaps falling back to root is the best
solution, but I think we should do it for all key tables, not just the
pane key table.
 
So basically, we pick a current ...more
Thomas Sattler <sat...@med.uni-frankfurt.de>: Apr 21 04:38PM +0200

Am 21.04.2017 um 13:38 schrieb Nicholas Marriott:
> solution, but I think we should do it for all key tables, not just the
> pane key table.
 
> Please try this: [patch]
 
Using this patch, my key ...more
Xudong Sun <smiles...@gmail.com>: Apr 21 10:37AM

Hi,
I updated tmux from 1.8 to 2.4 and now the problem is if I open a R
file and try to copy one existing line and paste them in another place, the
paste result is something else. ...more
Nelo-Thara Wallus <ne...@wallus.de>: Apr 21 12:43PM +0200

Please explain your problem _exactly_, including which buttons you're
using and if you mean another vim instance by 'paste them in another
place'.
 
Without specific information on your problem we ...more
Xudong Sun <smiles...@gmail.com>: Apr 21 11:37AM

Hi,
Thanks for the response.
Ok, the process is
I logged into a cluster, then I type tmux, then I type vim, then I press

F1 to open nerdtree and use
"t" to open a tab for a file I want ...more
Nicholas Marriott <nicholas...@gmail.com>: Apr 21 12:59PM +0100

If you are copying and pasting entirely within vim, tmux has very little
to do with it. Are you sure the actual paste is wrong and it isn't just
being displaying the wrong thing?
 
...more
Xudong Sun <smiles...@gmail.com>: Apr 21 12:10PM

I think it has nothing to do with display, since if the save the file and
close and open it again, the displayed line are the same.
 
in my .tmux.conf file, I found out two lines that is not ...more
Nicholas Marriott <nicholas...@gmail.com>: Apr 21 01:44PM +0100

So you are talking about copy and paste from tmux copy mode, not from vim?
 
 
 
On Fri, Apr 21, 2017 at 12:10:56PM +0000, Xudong Sun wrote:
You have received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to tmux-users+unsubscribe@googlegroups.com.



--

RP_logo_tagline_lockup_4.png

Michael S. Daines | Software Development Engineer

| | @defndaines

12181 BLUFF CREEK DRIVE, 4TH FLOOR, PLAYA VISTA, CA 90094

RUBICONPROJECT.COM | @RUBICONPROJECT

We’re Hiring: http://www.rubiconproject.com/join-us

Reply all
Reply to author
Forward
0 new messages