Discussion:
tmux, vim, and the x-selection
(too old to reply)
Chas. Owens
2015-04-21 13:57:32 UTC
Permalink
When I run vim in tmux and select a several lines I get space padding on
the shorter lines to length of the the longest line.

When I do the same without tmux, the terminal somehow knows were the lines
stop.

Is there some way to fix this (ie let the information about where lines end
from vim passthrough to the terminal)?

I am using tmux 1.9, vim 7.4.273, and a variety of terminals:
gnome-terminal 3.6.2, urxvt 9.20, xterm 304.
shawn wilson
2015-04-21 15:24:12 UTC
Permalink
Any reason not to "+y or w/e?

I think you want to disable mode-mouse, mouse-select-pane,
mouse-select-window, (and maybe) mouse-resize-pane. I generally keep these
off unless I want to interact with tmux with the mouse (hardly never - mmm,
so maybe enable - like I said, I don't do this).
Post by Chas. Owens
When I run vim in tmux and select a several lines I get space padding on
the shorter lines to length of the the longest line.
When I do the same without tmux, the terminal somehow knows were the lines
stop.
Is there some way to fix this (ie let the information about where lines
end from vim passthrough to the terminal)?
gnome-terminal 3.6.2, urxvt 9.20, xterm 304.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live
exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Chas. Owens
2015-04-21 16:08:05 UTC
Permalink
Yanking to the * or + registers in vim won't work because the vim instance
is on a remote machine that doesn't support X. I am not sure what w/e is.

The problem exists regardless of whether mode-mouse, etc. are on or off.
Quick tip for people with mode-mouse, etc. on: holding down shift disables
them allowing you to perform an X selection (of course, X knows nothing
about any splits, so you might want to zoom the pane, resize-pane -Z, if
you have splits).
Post by shawn wilson
Any reason not to "+y or w/e?
I think you want to disable mode-mouse, mouse-select-pane,
mouse-select-window, (and maybe) mouse-resize-pane. I generally keep these
off unless I want to interact with tmux with the mouse (hardly never - mmm,
so maybe enable - like I said, I don't do this).
Post by Chas. Owens
When I run vim in tmux and select a several lines I get space padding on
the shorter lines to length of the the longest line.
When I do the same without tmux, the terminal somehow knows were the
lines stop.
Is there some way to fix this (ie let the information about where lines
end from vim passthrough to the terminal)?
gnome-terminal 3.6.2, urxvt 9.20, xterm 304.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live
exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Loading...