There is no escape
I like an idea of the touch-bar, but removing physical Esc button is nothing but a pain, especially if you are using vi/vim, but not only. I been touching it accidentally, closing some windows, etc. No way, really. So i had to find a way to remap.
OSX allows to remap Escape key, but its possible to use only few options (e.g. to use Caps instead). For me it was not looking like a good option. So i started to look for an alternative and found it.
Karabiner Elements allows you to remap any key. You can find name of the key in the Event Viewer. For me it was
non_use_backslash (which is The plus-minus key “±”) to the
Removing touch-bar Escape
To make touch-bar escape harmless i just re-assigned it to the “right shift” button. That`s how my my final configuration looks like:
That`s it. Remapping works in the GUI and terminal programs, no problems found so far. Interesting what key will be removed in the next model.