Giter Site home page Giter Site logo

Remapping key bindings? about botanjs-vim HOT 1 OPEN

Vamsee30 avatar Vamsee30 commented on June 28, 2024
Remapping key bindings?

from botanjs-vim.

Comments (1)

tgckpg avatar tgckpg commented on June 28, 2024

I would really like to escape into normal mode by hitting "jk" or "kj" instead of going all the way over to the key.

What do you mean by "normal mode"? Do the mean the Esc key? You can hit Ctrl + c as an alternative imo.

Is it possible to map capital J & K to jump 5 lines down/up?

Sorry but remapping keys are not supported yet. This project was meant to be a temporary solution if other project suddenly doesn't work. ( Maybe try using wasavi? ).

Jumping 5 lines down... I think simple vim config are doable. But I don't know what the configs are since I don't use mappings at all. Setting nmap j 5j hangs my vim tho.

If you really want to jump 5 lines for J, K, try modify the codes yourself by following:

  1. Download the compiled source, not the compressed one
  2. Search for case SHIFT + J, there should be a comment with // Join lines
  3. Remove the ccur.openRunAction( "JOIN_LINES", e );, change it to this.__cMoveY( 5 );
  4. Similarly, there should be a case SHIFT + K nearby, remove the original actions and change it to this.__cMoveY( -5 );

from botanjs-vim.

Related Issues (10)

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.