Timeline for how to map <C-q> to :q!
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2020 at 21:00 | vote | accept | alec | ||
Oct 24, 2020 at 16:03 | answer | added | D. Ben Knoble♦ | timeline score: 3 | |
Oct 24, 2020 at 16:00 | comment | added | D. Ben Knoble♦ | Let us continue this discussion in chat. | |
Oct 24, 2020 at 13:44 | comment | added | D. Ben Knoble♦ | @alec there should not be | |
Oct 24, 2020 at 13:02 | comment | added | alec |
@D.BenKnoble, gotcha, thanks. Is there a difference between <CR> and <Enter> ?
|
|
Oct 24, 2020 at 2:48 | comment | added | D. Ben Knoble♦ | @alec yes. But if the mapping worked, i suppose it’s all sorted. I’ll write up an answer unless you want to | |
Oct 24, 2020 at 2:02 | comment | added | alec |
@D.BenKnoble thanks! nnoremap <C-q> <esc>:q!<CR> does what I want! I don't know what tty pausing but when I look it up I'm seeing stuff in regards to shell config. Was that part of your comment pertaining to the possibility that control-q would have some function for my terminal emulator?
|
|
Oct 24, 2020 at 1:55 | comment | added | alec | @Quasímodo normal mode. Re: "why do I use"... because of ignorance. The first was something I'd tried a while ago, the second was something I added today. | |
Oct 23, 2020 at 23:49 | comment | added | D. Ben Knoble♦ |
You might want to think about preferring nnoremap . Control-q is an alternative for visual-block, but you should still be able to override it. Note, however, that (like for C-s) you may have to disable tty pausing, which (afaik) uses those keys. (There’s a magic incantation of stty stty -ixon -ixoff )
|
|
Oct 23, 2020 at 21:40 | comment | added | Quasímodo | In which modes does your map fails? | |
Oct 23, 2020 at 21:39 | comment | added | Quasímodo |
Why do you use q and <ENTER> for the first instead of <C-q> and <CR> ?
|
|
Oct 23, 2020 at 21:18 | history | asked | alec | CC BY-SA 4.0 |