Skip to content

Combining vim relative line jumping with up/down display line movement #20863

Answered by ConradIrwin
timothyis asked this question in Q&A
Discussion options

You must be logged in to vote

We have a VimCount in the context. So you could potentially do something similar:

[
  {
    "context": "VimControl",
    "bindings": {
      "j": ["vim::Down", { "displayLines": true }],
      "k": ["vim::Up", { "displayLines": true }]
    }
  },
  {
    "context": "VimCount",
    "bindings": {
      "j": ["vim::Down", { "displayLines": false }],
      "k": ["vim::Up", { "displayLines": false }]
    }
  }

]

(Note the order is important VimCount must come after VimControl in the file, because they both match on the same node).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@0x2CA
Comment options

@timothyis
Comment options

Answer selected by timothyis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants