News for hackers. Stuff that matters.
Re:How I'm able to take notes in mathematics lectures using ... by securitybear on Thursday March 21, 2019 @06:29AM (#19450672)
Now that 'Escape' is not a real hardware key in the new Macbook Pro anymore and even otherwise 'Escape' has always been one of the hard to reach keys, what is workaround for avoiding the 'Escape' key in Vim?
Re:How I'm able to take notes in mathematics lectures using ... by rodorgas on Thursday March 21, 2019 @09:27AM (#19452016)
Caps Lock is the original placement of the Esc key. It's much more useful having Esc on your home row.
Re:How I'm able to take notes in mathematics lectures using ... by feiss on Thursday March 21, 2019 @06:37AM (#19450732)
some people use Shift Lock (which is barely used, and closer to pinky), and a colleague of mine use the sequence 'ii'
Re:How I'm able to take notes in mathematics lectures using ... by securitybear on Thursday March 21, 2019 @06:48AM (#19450801)
Did you mean Caps Lock? Which tool do you use? I found https://github.com/susam/uncap but it does not have a MacOS binary.
Re:How I'm able to take notes in mathematics lectures using ... by rodorgas on Thursday March 21, 2019 @09:23AM (#19451987)
You don't need any external program. Open System Preferences, go to Keyboard and click on "Modifiers Keys...", then you can map Caps Lock to Esc.
Re:How I'm able to take notes in mathematics lectures using ... by enriquto on Thursday March 21, 2019 @09:09AM (#19451849)
i map <tab> <esc>, which is much easier to reach. Thanks to autoindent the TAB key is useless inside vim.
Re:How I'm able to take notes in mathematics lectures using ... by mthwsjc_ on Thursday March 21, 2019 @06:44AM (#19450775)
people often map `jk` or `jj`, or the key to the left of `1` to Esc. I use `jk`.
Re:How I'm able to take notes in mathematics lectures using ... by foo101 on Thursday March 21, 2019 @06:56AM (#19450850)
I tried the idea of using `jk` in the past and found that it surely cannot be a perfect replacement of Escape.

Say I perform these mappings:

  :noremap jk <Esc>
  :inoremap jk <Esc>
Now granted, pressing `jk` in insert mode escapes me to normal mode. But many use cases that work with the Escape key do not work with `jk` anymore.

For example, try:

  :ab hn Hacker News
Now type `hn` in insert mode and press Escape, it would expand to `Hacker News` like it should. But then type `hn` in insert mode and press `jk`, it does not expand to `Hacker News`.
Re:How I'm able to take notes in mathematics lectures using ... by werdnapk on Thursday March 21, 2019 @08:55AM (#19451726)
I use ctrl+[ myself.