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:
In it something is. Many thanks for the help in this question, now I will know.
This simply matchless message ;)
Post a Comment