I am trying to direct data from manpage to gvim file but it's not properly formatted.
Example:
- In manpage it is shown as
NAME
(bold) - But in gvim its printed as
N^HNA^HAM^HME^HE
. - Similarly for
SYNTAX
it printsS^HSY^HYN^HNT^HTA^HAX^HX
. - You can notice additional letter after(or before)
^H
.
Please suggest how to correct this.
Also suggest if there is any other way of re-directing, so that it keeps the formatting intact.
man --ascii
? (Other implementations should have some another way of dumping plain text if they don't have that flag. ) And, btw, you can't "preserve formatting" in any native way. Vim is a (plain) text editor.