Perhaps I have spent so much time on Mac that pressing the Ctrl key for things feels unnatural vs. the Command key Argh. OS X is the last significant platform that gets this right by not trying to use Control for menu shortcuts out of the box. When I'm in a terminal, or editor, or browser text box, it's perfectly common and reasonable to want to distinguish Control-V (literal) from Command-V (paste), Control-Z (suspe…
Vim: Spacebar as leader key, CapsLock as Esc
21–30 of 44 posts
Re: Vim: Spacebar as leader key, CapsLock as Esc
#22Re: Vim: Spacebar as leader key, CapsLock as Esc
#23I use as my Easymotion leader.. https://github.com/Lokaltog/vim-easymotion it's well worth a look, gives you super quick fine grained movement similarly inoremap jj to take you from INSERT mode to NORMAL mode is nice
Re: Vim: Spacebar as leader key, CapsLock as Esc
#24Love spacebar as the leader key, but not a fan of CapsLock as Esc. CapsLock as Ctrl is better. For one, you never have to stretch for the real Ctrl, and two, you can use it for escape as well: Ctrl-[
Re: Vim: Spacebar as leader key, CapsLock as Esc
#25Re: Vim: Spacebar as leader key, CapsLock as Esc
#26What 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
Re: Vim: Spacebar as leader key, CapsLock as Esc
#27Re: Vim: Spacebar as leader key, CapsLock as Esc
#28I use ',' and my leader; but have been considering remapping 'esc' ... any suggestions other than CapsLock?
Re: Vim: Spacebar as leader key, CapsLock as Esc
#29I 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…
Re: Vim: Spacebar as leader key, CapsLock as Esc
#30I prefer remapping capslock to control for easier use of commands like , , , , and (all of which were absent in the example vimrc posted). Using the leader key makes total sense for dealing with splits and buffers or plugins you might want to look into some of the other Control based commands that Vim supports.
I'm guessing I use Ctrl-e more often than :e - perhaps I should change that up.
There seems to be a lot of ringing endorsements for CapsLock as Ctrl in the comments.