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.


2 comments:

Anonymous said...

In it something is. Many thanks for the help in this question, now I will know.

Anonymous said...

This simply matchless message ;)