unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.43k stars 54 forks source link

leader is comma #82

Open markfaine opened 2 years ago

markfaine commented 2 years ago

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

Thanks, Mark

bradford-smith94 commented 2 years ago

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.

amarakon commented 2 years ago

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.