Git Product home page Git Product logo

Comments (8)

rkitover avatar rkitover commented on July 30, 2024

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?

from vimpager.

rosshadden avatar rosshadden commented on July 30, 2024

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.

from vimpager.

rkitover avatar rkitover commented on July 30, 2024

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?

from vimpager.

rosshadden avatar rosshadden commented on July 30, 2024

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.

from vimpager.

nasenatmer avatar nasenatmer commented on July 30, 2024

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?

from vimpager.

rkitover avatar rkitover commented on July 30, 2024

Fixed in master.

from vimpager.

nasenatmer avatar nasenatmer commented on July 30, 2024

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!

from vimpager.

rosshadden avatar rosshadden commented on July 30, 2024

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

from vimpager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.