Skip to content

Add mapping functions#1746

Draft
citizenmatt wants to merge 19 commits intoJetBrains:masterfrom
citizenmatt:feature/map-functions
Draft

Add mapping functions#1746
citizenmatt wants to merge 19 commits intoJetBrains:masterfrom
citizenmatt:feature/map-functions

Conversation

@citizenmatt
Copy link
Copy Markdown
Member

This PR adds the mapping functions:

  • hasmapto()
  • maparg()
  • mapcheck()
  • maplist()
  • mapset()

It fixes a couple of small bugs along the way: VIM-4225, which used the wrong mapping for vim-sneak in op-pending mode, and a bug in :map output where it would list all maps if there were no matching prefixes (e.g. typing :map q23 will list all maps because there isn't a map that starts with q23).

This PR uses a function added as part of #1446, so is marked as draft until that is merged. Then I'll rebase and force push this one.

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

Successfully merging this pull request may close these issues.

1 participant