What is a leader key? How much typing class did I miss?!
I think he means instead of using a colon to begin Vim commands, he begins by typing a space. I started using Caps Lock as an extra Ctrl a couple months ago. It's great, except now I can't use other people's computers because I end up in caps-lock shout mode. E.g. instead of "ctrl+l" in my browser to visit a site, it ends up: CTRL+SHOUT+L BROWSER TAKE ME TO FACEBOOK I COMMAND THEE
Vim: Spacebar as leader key, CapsLock as Esc
31–40 of 44 posts
Re: Vim: Spacebar as leader key, CapsLock as Esc
#32https://github.com/CGamesPlay/dotfiles/blob/master/files/vim...
Re: Vim: Spacebar as leader key, CapsLock as Esc
#33Re: Vim: Spacebar as leader key, CapsLock as Esc
#34Re: Vim: Spacebar as leader key, CapsLock as Esc
#35Re: Vim: Spacebar as leader key, CapsLock as Esc
#36Re: Vim: Spacebar as leader key, CapsLock as Esc
#37I basically do this, but I use "," (comma) as my leader, and I make capslock do double duty as ctrl and esc using KeyRemap4MacBook ( https://pqrs.org/macosx/keyremap4macbook/ ). The trick is first remap capslock to Ctrl in keyboard system preferences, then use KR4MB to remap Control_L (the left control key, which is to say, what capslock now signals) to Control_L, but if you type ONLY Ctrl_L it sends esc. so when i n…
That said, I don't use this anymore because I found that I rarely release escape (er, caps lock) before moving on to the next key. So I was getting a lot of control-n instead of n.
Re: Vim: Spacebar as leader key, CapsLock as Esc
#38Re: Vim: Spacebar as leader key, CapsLock as Esc
#39Control is mapped to caps lock at the os level for me. There are also too many useful commands in vim that use control (visual block mode is huge). I tried mapping jj to escape as well, but ctrl-c is just as easy.
Leader is mapped to comma. Most of my leader commands are comma + "some letter I can type with my left hand".
Re: Vim: Spacebar as leader key, CapsLock as Esc
#40I broke things down by priority. I notice that I jump around in documents by searching through them, rather than by navigation keys. Spacebar is the biggest key on the keyboard, so, spacebar is mapped to "?" in normal mode. I also find that I need to search through a project regularly, so ctrl-spacebar is mapped to the ack/ag command. Control is mapped to caps lock at the os level for me. There are also too many usef…
You might want to try vim-sneak.