Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krompus opened this issue Feb 4, 2016 · 5 comments
Open

Comments

@krompus
Copy link

krompus commented Feb 4, 2016

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
Copy link
Owner

jez commented Feb 14, 2016

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
Copy link
Author

krompus commented Feb 16, 2016

Ah, cool; thanks!

@krompus
Copy link
Author

krompus commented Feb 19, 2016

@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
Copy link
Owner

jez commented Feb 20, 2016

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
Copy link
Author

krompus commented Feb 21, 2016

LINE NUMBERS ARE FOR THE WEAK. EMBRACE MINIMALISM!

:P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants