1

I set my mapleader to Space as :let mapleader = "\<Space>" and use it in command mode quite often. But when I hold it it makes the cursor to move forward which is very annoying.

QUESTION: Is there a way to unbind Space in normal mode?

  • 3
    I also have my leader set to space, I think you might want to add this line in your .vimrc so you can keep your leader in normal mode and Vim will wait before moving your cursor: set notimeout ttimeout ttimeoutlen=200 – statox Sep 29 '16 at 7:52
3

You can use the following:

nnoremap <Space> <NOP>

I also use Space as my leader, it does not seem to conflict.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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