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

Rebinding 'yy' (yank line) is not working #4392

Closed
bodgergely opened this issue Dec 16, 2019 · 3 comments
Closed

Rebinding 'yy' (yank line) is not working #4392

bodgergely opened this issue Dec 16, 2019 · 3 comments

Comments

@bodgergely
Copy link

Describe the bug
Unable to rebind the yank line command "yy" to "ff" (or any other key)
Since I have succefully remapped 'y' to 'f' I also expect the 'ff' to yank a line in normal mode.
To Reproduce
Steps to reproduce the behavior:

    "vim.visualModeKeyBindings": [
        {
            "before": [
                "f"
            ],
            "after": [
                "y"
            ]
        }
    ],
    "vim.normalModeKeyBindings": [
        {
            "before": [
                "f"
            ],
            "after": [
                "y"
            ]
        }
    ],

Now if you try using 'ff' to yank a line it will not work.

Expected behavior

'ff', just like 'yy' should yank a line.

Environment (please complete the following information):
VSCode version: 1.12.2
Linux

  • Extension (VsCodeVim) version:
  • VSCode version: 1.12.2
  • OS: Linux
@bodgergely bodgergely changed the title Bind 'ff' to 'yy' is not working Rebinding 'yy' (yank line) is not working Dec 16, 2019
@J-Fields
Copy link
Member

nnoremap ff yy does what you want

@bodgergely
Copy link
Author

@J-Fields Thanks a lot, worked!

@mdshahjalal5
Copy link

nnoremap ff yy does what you want

I not understood what to do here

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