Vim: Is there a downside to using <Space> as your <Leader> key? [closed]
I recently started using <Space>
as my mapleader, and I find it very comfortable and fast. I can slap that key with either thumb, freeing up whichever hand I need for the next keystroke, and even one-handed combos are pretty easy. I'm curious why I haven't heard more Vim users recommend this. Is there a downside I'm missing? I see a lot of people recommending ,
but that feels awkward to me for a lot of combos.
I use space as my leader and love it. I've found that for me, (with their default actions) ,
is occasionally useful and <space>
is literally never useful.
I can't think of any downsides to the spacebar,* and likewise have no idea why ,
is so apparently common.
* Except for one easily-solvable one. Space doesn't appear for 'showcmd'
. I work around this by using \
as my leader and mapping (must be :map
, not :noremap
) space to \
.
It doesn't take long to get used to ,
(compared to the default \
anyway). However, given that most people map their leader-key to ,
, some plugins (nerdcommenter for example) are written with this in mind and using <Space>
may interfere with some functionality. If you can live with that, go for it.
I have been comfortable using ;
as the leader. It helps the fingers stay on the home row and has been easy enough to use. But now, space
seems to be a good option too. It doesn't conflict with my workflow. I'll probably give it a try.
I don't know why I've never heard anyone else use <space>
for mapleader. It makes sense to me as long as you don't use <space>
for navigation, which I don't either. I can't think of any other disadvantage.