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

leader is comma #82

Open
markfaine opened this issue Dec 29, 2021 · 2 comments
Open

leader is comma #82

markfaine opened this issue Dec 29, 2021 · 2 comments

Comments

@markfaine
Copy link

How do I remap ',' since I use that as my leader?

Thanks,
Mark

@bradford-smith94
Copy link
Collaborator

If your question is how to map something to the original/default for , then I think you want something like :nnoremap _x :normal! , (where _x is whatever you want to map to ,).

I didn't check this, but off the top of my head I think this should at least be close.

@amarz45
Copy link

amarz45 commented Sep 1, 2022

You could just wait one second after pressing comma and it will work. You can change the time with the timeoutlen option. However, what I like to do is this:

nnoremap <leader><leader> ,

This will make pressing comma twice do what comma originally did. You need to have nnoremap instead of nmap.

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