change mapping jk to jf as escape in vim-mode
This commit is contained in:
parent
0b534f40f9
commit
6f7fde1eba
@ -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,
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user