Friday, January 21, 2022

Re: Disable Help

On 2022-01-21 04:04, Joseph Wulf wrote:
> And the answer is: "set paste" prevents the mapping of <F1> out of
> existence.
> Cannot set paste before or after the "map! <F1> <nop>"; just cannot
> set it at all.
>
> Which is a problem in my/our world.... as we use vim and paste a
> lot.

You might want to read up at

:help 'pastetoggle'

which is a setting that allows you to toggle 'paste', documented in

:help new-options-5.4

saying

'pastetoggle' option: Key sequence that toggles 'paste'. Works
around the problem that mappings don't work in Insert mode when
'paste' is set.

There might be a way to abuse this into turning <f1> into a <nop>

-tim


--
--
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/20220121075559.42dfdefc%40bigbox.attlocal.net.

No comments: