Skip to main content
1 of 3
mtk
  • 243
  • 3
  • 12

mapping to quit using "<Ctrl> + q" not coming into effect

I am trying to map Ctrl + q to quit editing the file. I added the below line to my .vimrc

 nnoremap <C-q> :execute "q"<CR>

On pressing the above key combination, nothing happens, vim doesn't quit. No Error, no message.

Can you please help me figure out what is wrong with this setting?

mtk
  • 243
  • 3
  • 12