change mapping jk to jf as escape in vim-mode

This commit is contained in:
TheK4n 2023-04-21 22:09:19 +03:00
parent 0b534f40f9
commit 6f7fde1eba
3 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ local plugins = {
"max397574/better-escape.nvim",
config = function()
require("better_escape").setup({
mapping = {'jk'},
mapping = {'jf', 'оа'},
timeout = vim.o.timeoutlen,
})
end,

View File

@ -20,7 +20,8 @@ map('n', '<Leader>/',
function() vim.opt.hlsearch = not vim.opt.hlsearch["_value"] end,
opts)
map('i', 'jk', '<ESC>', opts)
map('i', 'jf', '<ESC>', opts)
map('i', 'оа', '<ESC>', opts)
map('n', '<Enter>', 'o<ESC>', opts)
map('n', '<Space>', 'O<ESC>', opts)

View File

@ -56,7 +56,7 @@ precmd_functions+=(_fix_cursor)
bindkey -M viins 'jk' vi-cmd-mode
bindkey -M viins 'jf' vi-cmd-mode
bindkey ' ' magic-space # do history expansion on space
bindkey '^[[3;5~' kill-word # ctrl + Supr
bindkey '^[[3~' delete-char # delete