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

Hitting 'n' for next search result doesn't work sometimes #30

Closed
suan opened this issue Mar 8, 2012 · 4 comments
Closed

Hitting 'n' for next search result doesn't work sometimes #30

suan opened this issue Mar 8, 2012 · 4 comments

Comments

@suan
Copy link

suan commented Mar 8, 2012

As an example, do man git-stash, then /pop<enter>. Then, hit n to get to the next result - nothing happens. Instead, you have to manually scroll down to the next result, and from there it works for some reason.

@suan
Copy link
Author

suan commented Mar 8, 2012

Alright, I figured out why this is happening now - its because my scrolloff is set to a really high number (which is weird - I have version 1.6.6 and shouldn't it be set to 5 by default?)

So I try to set it in my .vimrc, but I don't understand what You can also switch on the "vimpager" variable in your vimrc to set alternate settings for vimpager. means. I've tried entering let vimpager_scrolloff = 0 in my .vimrc and it has no effect.

I don't want to create a separate .vimpagerrc file because I want to continue using my .vimrc settings in vimpager. Would you mind clarifying the README a little?

@rkitover
Copy link
Owner

Sorry for some reason I didn't get an email for your following comment.

I just did a :set scrolloff in the pager and it is completely screwed up, this is due to the custom scrolloff code I merged from someone.

I will have a fix available shortly and will post here.

Sorry I couldn't get to it sooner, was working on other projects.

rkitover added a commit that referenced this issue Apr 11, 2012
There was a problem with 98caa3e in how the scrolloff value was read, so
it was being set to a very high number and it was screwing up the first
'n' after a search.
@rkitover
Copy link
Owner

Fixed in 1.6.8, just uploaded to vim.org

http://www.vim.org/scripts/script.php?script_id=1723

Closing this issue, thanks for the report!

@suan
Copy link
Author

suan commented Apr 11, 2012

Works - thanks!

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

No branches or pull requests

2 participants