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

"h" does not scroll left #71

Closed
rosshadden opened this issue Jan 30, 2014 · 8 comments
Closed

"h" does not scroll left #71

rosshadden opened this issue Jan 30, 2014 · 8 comments

Comments

@rosshadden
Copy link

I just installed this (and love it), but with unchanged settings I am unable to scroll left with the h key. What happens instead is I get a help output:

<Space>   One page forward          b         One page backward
d         Half a page forward       u         Half a page backward
<Enter>   One line forward          k         One line backward
G         End of file               g         Start of file
N%        percentage in file

/pattern  Search for pattern        ?pattern  Search backward for pattern
n         next pattern match        N         Previous pattern match

:n<Enter> Next file                 :p<Enter> Previous file

q         Quit                      v         Edit file
Hit Enter to continue

l, j, and k all work as expected.

@rkitover
Copy link
Owner

rkitover commented Feb 1, 2014

This is less.vim functionality to mimic the help screen of less.

Do you think I should just disable it or add an option to disable it?

@rosshadden
Copy link
Author

I see why it's there now. People used to vi will never expect that h would bring up a help screen, but people used to less may freak out and try things like that. Then again, since vimpager does not come with your OS and you have to go out of your way to install it, that kind of weeds out people that expect h to do the same thing it does in less.

I do think we should rebind it, but at the very least I think an option to disable it would work. Anyone frustrated enough will come to the docs and see that they may disable it.

rkitover added a commit that referenced this issue Feb 9, 2014
less.vim binds 'h' to a small help screen, unmap it so that the cursor
moves left instead.

Perhaps what we really need is a no-line-wrap mode, with h and l
scrolling the screen left and right.
@rkitover
Copy link
Owner

rkitover commented Feb 9, 2014

I unmapped the 'h' binding in 1.8.4, now the cursor moves left on 'h' and right on 'l' when on a line.

To make this actually useful, I think what we need is a no-line-wrap mode where 'h' and 'l' would scroll left and right.

What do you think?

@rosshadden
Copy link
Author

Yeah I like that idea. I've found by hitting the v key I actually end up in a mode with normal vim navigation bindings (IE hjkl move the cursor instead of the page). Not sure if that is considered a feature or not, but I like it because from there I can copy/paste is if in vim itself. What vimpager does by default is much more useful as a pager replacement of course, I just like being able to essentially switch between these modes.

@nasenatmer
Copy link

Hm, I'm not quite sure but I think I am also affected by this. Since I'm using a different keyboard layout - bone(2) I usually remap hjkl as follows:

no h j
no j h
no l k
no k l

However, this (still) doesn' work for h, it's still moving the cursor to the left, even if I unmap h before binding it to j.

Is there any other way to achieve this?

rkitover added a commit that referenced this issue Feb 26, 2015
Previously the 'h' for help mapping was disabled in vimpager by a remap.

Comment it out in less.vim entirely, because it is causing problems with
people's custom mappings.
@rkitover
Copy link
Owner

Fixed in master.

@nasenatmer
Copy link

Thanks a lot! I hope this won't cause confusion with those people who expect h to activate help. But as it's called vimpager and not lesspager I think that this should be ok for most people!

@rosshadden
Copy link
Author

I'm closing this, since it was added (a long time ago :-D)

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

3 participants