24
2
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.
2Found the tip for
'showcmd'
helpful. One problem I ran into which I wasn't able to come up with a work around for was with that mapping it didn't seem possible to invoke keybindings mapped to<leader><leader>[key]
– Mike S – 2014-08-22T18:55:19.1171Space does appear as <20> in the "showcmd" for me. (I'm using gVim for Windows version 7.4, patches 1-1965) – Niko Bellic – 2016-08-31T17:28:30.230
@pandubear What do you like <space>x as i? It seems longer, although it is left handed. – Casey Rodarmor – 2017-02-07T06:47:51.273
1@rodarmor It was just an example for debugging ivan's problems. – pandubear – 2017-04-25T18:53:23.907
Nice workaround! I'm going to try this. – ivan – 2013-12-27T16:50:57.973
It's not working for me. The mapping works, but
showcmd
doesn't show\
when I hit<Space>
. Am I missing something? – ivan – 2013-12-27T17:05:26.640Hmmm... Here's the minimal version of what I did.
map <Space> <Leader> ** nnoremap <Leader>x i ** set showcmd
. (replace the**
s with newlines since comments have to be one line) Use that as yourvimrc
. Does it work? On my machine, I'm able to use<space>x
asi
, and \ appears when I hit the spacebar. – pandubear – 2013-12-27T21:27:56.053I tried it again, and it seems to work if I start a new Vim session. I tried to isolate it but couldn't figure out what was interfering. Anyway, it works now. Thanks! – ivan – 2013-12-29T03:37:21.830