Discussion:
tmux: auto adjust terminal length when tmux pane got resized
ping song
2014-11-02 02:17:18 UTC
Permalink
this looks an issue for me:

say you open vim from within one of the pane.
due to the pane width limit your vim wrapped the text to adjust to the width.
but then you resize the pane - you enlarged it a bit.
now ideally vim should detect this and be able to adjust the new
width, re-arrange the text per the new terminal size.
but this is not the case - VIM always stay with the initial terminal
width and wrapped the text like that. obviously this is not vim issue
.
is there a way to solve this?

forget me if this is a stupid question.

thanks.
regards
ping

------------------------------------------------------------------------------
Nathan Schwarz
2014-11-02 07:58:12 UTC
Permalink
Post by ping song
say you open vim from within one of the pane.
due to the pane width limit your vim wrapped the text to adjust to the width.
but then you resize the pane - you enlarged it a bit.
now ideally vim should detect this and be able to adjust the new
width, re-arrange the text per the new terminal size.
but this is not the case - VIM always stay with the initial terminal
width and wrapped the text like that. obviously this is not vim issue
.
is there a way to solve this?
forget me if this is a stupid question.
thanks.
regards
ping
Can you provide a caption showing this behaviour? What you just
described (vim refactoring the text to adjust to a new pane size) is
exactly what happens for me, so I guess either I didn't understood what
you mean, you meant something else or your version of vim is bugged.

Also, please include your versions of vim and tmux.

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


------------------------------------------------------------------------------
ping song
2014-11-09 03:48:56 UTC
Permalink
thanks for response.
I re-tested it and couldn't reproduce.
finally I realized it's in another scenario that this issue appears painfully:
login to remote server from ssh/telnet in pane, start vim from the
remote machine
resize pane
naturelly the remote machines vim couldn't adjust the new screen width
automatically...
I guess it might not be related to tmux.
Post by Nathan Schwarz
Post by ping song
say you open vim from within one of the pane.
due to the pane width limit your vim wrapped the text to adjust to the width.
but then you resize the pane - you enlarged it a bit.
now ideally vim should detect this and be able to adjust the new
width, re-arrange the text per the new terminal size.
but this is not the case - VIM always stay with the initial terminal
width and wrapped the text like that. obviously this is not vim issue
.
is there a way to solve this?
forget me if this is a stupid question.
thanks.
regards
ping
Can you provide a caption showing this behaviour? What you just
described (vim refactoring the text to adjust to a new pane size) is
exactly what happens for me, so I guess either I didn't understood what
you mean, you meant something else or your version of vim is bugged.
Also, please include your versions of vim and tmux.
-Nathan
--
/"\ ASCII Ribbon Campaign
\ / - against HTML emails
X - against proprietory attachments
/ \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
------------------------------------------------------------------------------
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
Loading...