I want to use the i_CTRL-G
mapping to abort the current cmp selection, but i_CTRL-G
is already used by neovim.
I tried to delete the mapping with this:
vim.keymap.del('i', '<C-g>')
But it just said: E31: No such mapping
Any ideas how to do this? :)
:verbose imap <C-g>
?vim-surround
plugin sets the keymap. Here the output:i <C-G>S <Plug>ISurround Last set from ~/.config/nvim/pack/plugins/start/vim-surround/plugin/surround.vim line 626
<C-g>
but on<C-g>S
. You have to delete that mapping explicitly.let g:surround_no_insert_mappings=1
, see github.com/tpope/vim-surround/blob/…