1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-10-05 17:18:00 +03:00
5 Avoid the escape key
Vladimir Bauer edited this page 2019-02-16 03:01:47 +03:00

jj to escape

Unlike Vim, there is no delay to insert j or the stress to type quickly because of timeout.

hook global InsertChar j %{ try %{
  exec -draft hH <a-k>jj<ret> d
  exec <esc>
}}

jk to escape

For using jk to exit insert mode use the following snippet.

hook global InsertChar k %{ try %{
  exec -draft hH <a-k>jk<ret> d
  exec <esc>
}}

,. to escape (dvorak)

hook global InsertChar \. %{ try %{
    exec -draft hH <a-k>,\.<ret> d
    exec <esc>
}}