Thursday, January 20, 2022

Re: Disable Help

On Thu, Jan 20, 2022 at 4:26 PM Joseph Wulf <joseph.c.wulf@gmail.com> wrote:
>
> Gary,
>
> Little closer......The results for "i' were:
> i <F1> <Nop> Last set from ~/.vimrc
> In my previous email, I showed that (I thought) I'd addressed ALL the modes (c, i, l, n, o, s, v, x).

Normally, using

map <F1> <Nop>
map! <F1> <Nop>

ought to work for all usual modes: with exclamation mark for Insert
and Command-line modes, without it for Normal, Visual (i.e. s+x) and
Operator-pending. If you use the terminal window you may have to add a
tmap. Language mappings are used when keymaps are active (i.e.
'iminsert' is equal to 1, toggled by Ctrl-^), any key with no langmap
defined defaults to whatever it does in "standard" Insert mode. See
:help :map-commands

Best regards,
Tony.
>
> 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 7:38 PM Gary Johnson <garyjohn@spocom.com> wrote:
>>
>> On 2022-01-19, Joseph Wulf wrote:
>> > 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.
>>
>> Joe,
>>
>> Thanks for showing all that. Interesting that your insert-mode
>> mapping doesn't work. I was thinking that
>>
>> verbose map <f1>
>>
>> would show all maps of <f1>, but it doesn't. It doesn't show
>> insert-mode maps. Obvious on reflection, but I don't always
>> reflect. To see those, execute
>>
>> :verbose imap <f1>
>>
>> HTH,
>> 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/20220120003914.GA14109%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/CAJ8cad-aZORqWSjdqiZMexQwUQ%2BsSyQ%2BzLazhpzO2GQVxE1XTw%40mail.gmail.com.

--
--
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/CAJkCKXutxVKcinNVcSkyTL9AKP47ZnfXrSwXuO5amF1tJU32Hw%40mail.gmail.com.

No comments: