jez / vim-superman

Read Unix man pages faster than a speeding bullet!
http://blog.jez.io/2014/12/20/vim-as-a-man-page-viewer/
MIT License
190 stars 20 forks source link

I'm getting strange line wrapping behaviour. (screenshot provided). #10

Open krompus opened 8 years ago

krompus commented 8 years ago

It seems that the lines are attempting to make themselves "too long" by one character, triggering vim's soft linewrapping, which looks awful for manpages.

Here's what it looks like (vman at the top, vim on the left, man on the right).

Is there a solution to this?

(Thanks for the beautiful program, by the way!

jez commented 8 years ago

I see this too sometimes. I haven't been able to pin down exactly when it happens. I'll keep a more keen eye out for it and report back if I can make any progress.

krompus commented 8 years ago

Ah, cool; thanks!

krompus commented 8 years ago

@jez Hey dude! I think I've found a workaround. I noticed that it was consistently wrapped by only a few characters, and decided to see what would happen if I executed :set nonumber, and everything looked fine afterwards. So then, I modified line 32 of plugin/superman.vim to read setlocal nonumber, and it consistently displays manpages correctly.

My guess is that man is sourcing the terminal width without considering vim's loss of width from the number bar.

I think I actually prefer it this way; it's more minimal, and I can still find my way around with the search and the percentage indicator.

Thanks again for the great plugin!

jez commented 8 years ago

Oh, yeah if that workaround is fine for you, more power to you!

I'm probably going to keep this issue open anyways, because I'm not willing to give up line numbers.

krompus commented 8 years ago

LINE NUMBERS ARE FOR THE WEAK. EMBRACE MINIMALISM!

:P