by Tom1971 · 10y ago · 0 comments
I tried it at the Apple Store and it's pretty much unusable. (It had the seen issue as the writer, apparently relying on the physical click to know whether or not I had pressed it. In addition, I also mistyped it a lot. Maybe hack to replace the whole touch bar as one single ESC key will do it...)
I've been told to remap the ESC to CAPS LOCK to vim usage, but I seem to be one of a rare breed who uses the latter the way it was intended to be, so that's a no go for me.
Not really relevant, but when Vi was originally developed, the escape key was in a more convenient location — right where the tab key is now. It was never intended for users to have to reach that far to hit such an essential key.
https://en.wikipedia.org/wiki/File%3aKB_Terminal_ADM3A.svg
Edit: also, Control-c and control-[ do the same thing.
They're not actually the same. C-[ is the same as Esc but C-c is not.
Using C-c to leave Insert mode won't trigger InsertLeave.
If you select a vertical visual block and insert a comma at the end of each line E.g. C-v}$A, Using Esc or C-[ to leave insert mode will insert the comma at the end of every line in the paragraph but using C-c will only insert after the first line.
Also if you get used then to using C-c in Vim then you'll potentially run into issues if you try to use it in other Vi places e.g. anything that uses readline or your shell.
IMHO C-[ is a much better solution for these reasons.
:imap <C-c> <Esc>
Remapping caps lock would be good too, but I already have caps lock remapped to Ctrl and I'm just used to that. In anticipation of what seemed like the inevitable loss of my escape key, I've been trying really really hard to like Ctrl-[ the last three weeks, but I've just given up. I keep opening up Ctrl-P searches or hitting Ctrl-]. My pinky just can't do it. So I've given up and made Ctrl-C work and it's so much better.
True but you're still out of luck in other Vi like places.
As an alternative I used Karabina in the past to map Caps lock into Esc (when pressed and released) and Ctrl (when pressed with another key). I think you could also make it latch as Caps lock by using Caps-Shift but I'm not 100% on that.
Does anyone know if Karabina has been updated to work with Siera yet?
For vim, you can map tab to being your new esc. Chances are you are using expandtab option, so actual tab usage is not big (it exists though, left here as an exercise for a reader )
Anyway im moving to kabylake dell xps 13. After 9 years with apple. Windows from 2016 gives much better linux integration. And its good to challenge yourselfe with such a big change every 10 years. Its bicycle for your mind (c) Jobs.
I am intrigued; what's your use case that requires so much uppercase text?
It's an option.
But there are so many programs that require ESC, so it's only a half-way solution.
Just clone it into your root directory and ensure it's named ".vimrc". It won't work otherwise. Then just restart your terminal. I'd google some things in there if you don't fully understand what they do.
If it's only whilst the key is held it effectively means you'd have to use your right hand to press the escape key ...which doesn't sound ideal to me.
Lenovo backtracked, and subsequent generations lost the "touch bar" and use regular keys.
I don't use Macs often, but that's definitely one place where Apple is so far ahead in their implementation that it's not even funny. Using the touchpad for anything more complex than surfing the web is much more comfortable.
Does the 'fn' key force-change the touchbar to display F1-F12?
If so, then I don't understand the folks bemoaning the lack of physical "function keys" from their apps, which I assume they mean that they use the F(n) keys, since the mechanics of this are the same.
I'm a fast touch typist, but have never have hit F(n) keys accurately without glancing at the keyboard when I do use them, so I assume I would have no problem with the TouchBar based F keys.
Yes it does
[1] System Preferences > Keyboard > Keyboard > "Use all F1, F2, etc. keys as standard function keys" option on El Cap.