Sunday, October 11, 2009
better gnu screen copy mode
Ok, so I have been struggling with screen copy mode. But now, here it is, the ultimate screen copy mode.
Just make an alias out this:
alias a='screen -X hardcopy blah && vim -c "normal G" ~/blah'
or for tmux
alias a='tmux capture-pane;tmux save-buffer /tmp/screen_contents;vim -c "normal G" /tmp/screen_contents'
now type a<enter>
for the ultimate screen copy mode. This gives you the full power of vim whenever you want to yank a couple lines from the text you already have on the screen.