weird escape characters when using nvim as a manpager
weird escape characters when using nvim as a manpager - Lemmy.world
I use zsh and have export MANPAGER="nvim -Rc 'set ft=man' -" in my .zshrc. this used to work well but since a couple of weeks ago, whenever I run man (e.g. man man) I get many weird escape characters (e.g. [4mMAN[24m(1)). when running man and manually piping the output to another program (e.g. man man | nvim -Rc 'set ft=man' -) I don’t get these characters (e.g. MAN(1)). I haven’t manage to figure out why this happens or how to fix it. does anyone else have an idea?