I have tried several things to set the keybinding Ctrl+Q to exit Vim without saving any changes (i.e., what is normally bound to
:qa!). I have tried adding:
inoremap <C-q> <esc>:qa!<cr> " quit discarding changes nnoremap <C-q> :qa!<cr>
~/.vimrc based on this answer on Unix & Linux StackExchange. This failed as when I pressed Ctrl+Q nothing happened. I have also tried:
map <C-Q> :qa!
map <C-Q> ":qa!
neither worked. Any ideas what I need to do to set this keybinding? If it is at all relevant my platform is Fedora 25 and I installed the latest Vim from my own Open Build Service repository — https://build.opensuse.org/package/show/home:fusion809/vim-redhat.