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

Trying to map Y to y$ #4158

Closed
aquaductape opened this issue Oct 10, 2019 · 4 comments
Closed

Trying to map Y to y$ #4158

aquaductape opened this issue Oct 10, 2019 · 4 comments

Comments

@aquaductape
Copy link

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": [
        "Y",
      ],
      "after": [
        [
          "y",
          "$"
        ]
      ]
    },
  ],

Nothing is copied to clipboard when using the new mapping. I'm expecting it to copy from cursor position to the end of line.

@aquaductape
Copy link
Author

aquaductape commented Oct 10, 2019

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": [
        "Y",
      ],
      "after": [
        "y",
        "$"
      ]
    },
  ],

Solved it. I accidentally nested the array with another array inside after.

@wsh3776
Copy link

wsh3776 commented Mar 19, 2020

Hello, is it possible to use y + h to map y + $?

@J-Fields
Copy link
Member

@meteorsh You mean yh does y$? If so, that's not currently possible - #3086 is the relevant issue

@wsh3776
Copy link

wsh3776 commented Mar 20, 2020

@meteorsh You mean yh does y$? If so, that's not currently possible - #3086 is the relevant issue

Well, it sounds a bit sorry. Hope it can be possible in the future!

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

No branches or pull requests

3 participants