Skip to content

Commit

Permalink
Fix: terminal mode defaults
Browse files Browse the repository at this point in the history
- Change `<Esc>` to `<C-\><C-n>` because `<Esc>` doesn't exit terminal mode by default.

- Refactor: Remove the "jj" terminal mapping because it gets misused with terminal apps that use vim-bindings, such as "less".
  • Loading branch information
Sam-programs authored Aug 2, 2024
1 parent f45b52f commit 6996b2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/better_escape.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ local settings = {
},
t = {
j = {
k = "<Esc>",
j = "<Esc>",
k = "<C-\\><C-n>",
},
},
v = {
Expand Down

0 comments on commit 6996b2d

Please sign in to comment.