Monday, September 7, 2020

Re: Broken Q key... how can I leave vim without saving?

On 2020-09-07, Christian Brabandt wrote:
> On Mo, 07 Sep 2020, 'Jürgen Krämer' via vim_use wrote:
>
> > or in a lucky moment, when your Q key works, put something like
> >
> > nnoremap <A-F4> :q<cr>
> > nnoremap <A-C-F4> :q!<cr>
> >
> > in your ~/.vimrc. You can do this for the other keys, too, and even
> > map <F4> to 4, which (to my surprise) even works for entering a count
> > in front of a normal mode command, e.g., <F4>dd expands to 4dd.
>
> Or simply cut and past this into your .vimrc

How about this?

:exe nr2char(113)

or

:exe nr2char(113).'!'

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200907153533.GA3242%40phoenix.

No comments:

Post a Comment