Giter VIP home page Giter VIP logo

Comments (6)

keforbes avatar keforbes commented on June 1, 2024

Interesting. This feature request seems really useful but unfortunately I have no idea how difficult it would be to implement. The original authors of Vrapper passed it on to me and I don't actually know how the key mapping feature works. I'll check with them to see if they have any ideas.

We should be able to implement this feature request but I'm afraid it might take some time.

from vrapper.

keforbes avatar keforbes commented on June 1, 2024

I know it's been awhile since this feature was requested but I think I got omap working. I needed it to workaround my fix for #353. I've updated the unstable update site with a new build (0.39.20131225) which includes this feature. I don't know if I'm handling all scenarios correctly though. I'm hoping someone out there cares enough about this feature that they're willing to test it for me. I've never used the feature myself so I don't understand the nuances of it.

from vrapper.

justinmk avatar justinmk commented on June 1, 2024

I would test, but honestly the only use that I know of for omap is for plugins. For example, I have vim plugin that omaps to create a "z" operator. Vim automatically sends a special v:operator argument to the omap, so the omap'd function knows what motion it is responding to.

I don't know how this could be used in vrapper.

from vrapper.

justinmk avatar justinmk commented on June 1, 2024

Anyways, I just tried this (after updating to 0.39.20131225):

onoremap z :ls<cr>

That should execute :ls after typing something like cz or dz, but it seems to ignore the z and just performs the c or d, and the buffer list isn't shown.

from vrapper.

justinmk avatar justinmk commented on June 1, 2024

btw, the same mapping does work as expected in Vim.

from vrapper.

keforbes avatar keforbes commented on June 1, 2024

That mapping didn't work for you because Vrapper didn't support moving to command-line mode while an operation was pending. I don't see any real use case for it, but I've added that ability in d2bc18f since Vim seems to support it. With that new change, your mapping behaves the same as Vim.

The description for this feature request mentioned dvorak users, that's the use case which I'm hoping we now support. I don't have any intentions of supporting v:operator for complex functions calls since we don't currently support functions in vimscripts either.

from vrapper.

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.