For years, I'd just save the formatted page, strip backspaces and fake bolding with col -b, and then pull it into the editor.
Today, I use an environment variable to tell man that I want it to do all that for me. Here's how to do it for vi, which is now in my firmware. If you use emacs or kate or gedit or something else, and know an incantation, post it in a comment.
$ export PAGER="/bin/sh -c \"col -b | view -c 'set ft=man nomod nolist' -\""
No comments:
Post a Comment