Fork me on GitHub
#vim
<
2017-02-23
>
mikepjb08:02:23

funny, I don’t think you can do that in vim - I tried 50 times or so haha, in nvim you can actually rebind the mapping :map <C-c> :echo “hello”<CR>

mikepjb08:02:45

or perhaps more usefully :map <C-c> <esc>

mikepjb08:02:53

having said that though I was impressed by the default actions for <C-c> in nvim for example autoindenting on leaving insert mode in vim would stop the operation whilst nvim does not

mikepjb08:02:33

basically in nvim it seems to behave exactly like <esc>