vim-superman icon indicating copy to clipboard operation
vim-superman copied to clipboard

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

Open krompus opened this issue 9 years ago • 5 comments

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!

krompus avatar Feb 04 '16 21:02 krompus

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.

jez avatar Feb 14 '16 00:02 jez

Ah, cool; thanks!

krompus avatar Feb 16 '16 10:02 krompus

@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!

krompus avatar Feb 19 '16 19:02 krompus

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.

jez avatar Feb 20 '16 22:02 jez

LINE NUMBERS ARE FOR THE WEAK. EMBRACE MINIMALISM!

:P

krompus avatar Feb 21 '16 06:02 krompus