Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I map dH to delete all left in a line? #4627

Closed
wsh3776 opened this issue Mar 7, 2020 · 2 comments
Closed

How can I map dH to delete all left in a line? #4627

wsh3776 opened this issue Mar 7, 2020 · 2 comments

Comments

@wsh3776
Copy link

wsh3776 commented Mar 7, 2020

First, I want to thanks for the great work you're doing 👍

I was trying to map dH to delete all left and dL to delete all right in a line. But when I tried the following code in settings.json, it doesn't work.

// I have mapped H to move to the head and L to move to the end
 "vim.normalModeKeyBindingsNonRecursive": [
 		{
            "before": [
                "d",
                "H"
            ],
            "after": [
                "d",
                "^"
            ]
        },
        {
            "before": [
                "d",
                "L"
            ],
            "after": [
                "d",
                "$"
            ]
        }
],

If I use H it actually work, but I am used to use dH to delete all left in other vim editors.

So is there a way to do solve this problem with VScode-vim?

Thanks!


Environment

  • Operating system : macOS Majave Version 10.14.5
  • Web browser : Version 80.0.3987.132
  • VScode: Version 1.42.1
@sql-koala
Copy link
Contributor

Hi,
your mappings are correct in general. But, what you are looking for, is not possible for now. There are some issues with the same topic:
#3742
#3086

@J-Fields
Copy link
Member

J-Fields commented Mar 8, 2020

Closing as duplicate of #3086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants