DEV Community

loading...

Discussion on: Edit tmux output with Vim (or any text editor)

Collapse
masaeedu profile image
Asad Saeeduddin

Neat, thanks for sharing! I found you can also do -S - to get the entire scrollback buffer (regardless of size) in case that's what the objective of the large -32768 number is.

Collapse
acro5piano profile image
Kay Gosho Author

Thanks!
I also found I have to add the following option to .tmux.conf to see the entire scroll buffer:

set-option -g history-limit 20000

And I added '+ normal G $' to vim launching option to open the file at the bottom:

tmux new-window -n:mywindow "vim '+ normal G $' $file"