I want to map to close quickfixlist
, but when I do it will just send a message Type :qa and press <Enter> to exit vim
.
I just do this nnoremap <silent><C-cc> :cclose<CR>
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityFirst your expression <C-cc>
is not right like this, but guessing from the comments you want to remap <C-c><C-c>
.
The problem with this is, that you cannot map like this because this is the SIGINT signal (if I remember correctly).
It is possible though -> see :help map-CTRL-C.
So to remap <C-c>
Vim has to be waiting for a key, so maybe try to use <leader><C-c><C-c>
or something like this.
<C-c><C-c>
unless you press it slowly. Before I changed my config, <C-c><C-c>
is a default mapping on one plugin I use, If I remember correctly it was Coc
. Temporarly I use <Leader>cc
but I want C-cc
back because I can just press Ctrl with my side palm and press cc quickly.
<C-c><C-c>
; the issue arises when vim is busy.
CTRL
and pressc
twice<C-c><C-c>
CTRL
and pressc
twice quickly and certainly<C-cc>
is not something Vim understands. There are however some plugins that allow something similar, like the tinymode or tinykeymap plugin