2

I would like to use the mapping

nnoremap <C-k> :bprev<CR>

However, whenever I press ctrl-k, there is a second delay before anything happens. When I use a different key combination, like ctrl-j, everything works fine.

Any idea why this happens and how this can be solved?

2
  • 1
    You should host your .vimrc somewhere and give a link here so someone can look at the origin of the problem. But of the top of my head I think there is another mapping <C-k> something so that when you press <C-k> it waits and sees if you press another key. Find and disable that keymapping and you should be good to go.
    – 3N4N
    Mar 3, 2018 at 17:24
  • Yep, I had a <c-k><c-o> mapping. Thanks for the catch
    – chtenb
    Mar 3, 2018 at 17:27

1 Answer 1

3

There is another mapping Cntrl+k+something so that when you press Cntrl+k, it waits and sees if you press another key. Find and disable that keymapping and you should be good to go.

1
  • Might be worth mentioning the timeout and timeoutlen settings?
    – Rich
    Mar 5, 2018 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.