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

How to assign the leader key to the spacebar? #861

Open
a333klm opened this issue Mar 15, 2023 · 1 comment
Open

How to assign the leader key to the spacebar? #861

a333klm opened this issue Mar 15, 2023 · 1 comment

Comments

@a333klm
Copy link

a333klm commented Mar 15, 2023

I want to use the space bar as the leader key. The following did not work:
nnoreamap <SPACE BAR> <Nop>
let mapleader=<SPACE BAR>

With let mapleader="," I could assign it to the comma but with the spacebar the cursor just moves further or if i assign a command to r then it tries to replace the next character.

@frankbenoit
Copy link
Contributor

nnoremap <SPACE> <Nop>
let mapleader=" "

This works for me. Is it still unsolved for you?

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

2 participants