Wednesday, January 19, 2022

Re: Disable Help

Gary,

Thank you.

That's interesting.
In doing  ":verbose map <f1>", I get the following output:
x  <F1>          <Nop>               Last set from ~/.vimrc
s  <F1>          <Nop>               Last set from ~/.vimrc
o  <F1>          <Nop>               Last set from ~/.vimrc
n  <F1>          <Nop>               Last set from ~/.vimrc

While in my .vimrc, I have:
cmap <F1> <nop>
imap <F1> <nop>
lmap <F1> <nop>
nmap <F1> <nop>
omap <F1> <nop>
smap <F1> <nop>
vmap <F1> <nop>
xmap <F1> <nop>

At the moment, in command-mode, <F1> is properly NOT working, while in INSERT mode, <F1> still does bring up the help.
I can see I'm getting closer, as I'm half-way there.


R,
-Joe Wulf;  RHCSA(RHEL7), FITSP-D, CISSP, VCP3, CPO(USN/RET)
Tony Robbins:  "Management is focusing on getting someone to get a result. Leadership is producing a standard in someone that when you're gone, they will live by to produce higher level results consistently".




On Wed, Jan 19, 2022 at 1:04 PM Gary Johnson <garyjohn@spocom.com> wrote:
On 2022-01-19, Tim Chase wrote:
> On 2022-01-19 07:23, Joseph Wulf wrote:
> > When using vim I wish to disable the <F1> from popping up the help.
> [snip]
> > :nmap <F1> <nop>
> [snip]
> > I place the SAME string without the quotes or leading colon in
> > .vimrc, close/open a new vim session, and <F1> immediately brings
> > up the help menu.
>
> You're on the right track, but it sounds like something is
> re-instituting the F1=help mapping after you set it.

    :verbose map <f1>

should show where the mapping was done.

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/20220119180458.GA5754%40phoenix.

--
--
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/CAJ8cad9HvKaS%3D59P3enEMvEz2NHM02%2BYM_57uky2HwykH3PTGA%40mail.gmail.com.

No comments: