Monday, March 26, 2012

Re: verbose map doesn't always shows the mapping

On Tue, March 27, 2012 08:46, Jeri Raye wrote:
> I have certain mappings defined in a file
> +-- mapping file --+
> " F8 is Select all
> noremap <F8> gggH<C-O>G
> inoremap <F8> <C-O>gg<C-O>gH<C-O>G
> cnoremap <F8> <C-C>gggH<C-O>G
> onoremap <F8> <C-C>gggH<C-O>G
> snoremap <F8> <C-C>gggH<C-O>G
> xnoremap <F8> <C-C>ggVG
>
>
> inoremap <C-h> <left>
> inoremap <C-j> <down>
> inoremap <C-k> <up>
> inoremap <C-l> <right>
> +-- mapping file --+
>
>
> I recently discovered the command
> :verbose map
>
> When I type
> :verbose map <f8>
> Then it displays it mappings
>
> But it doesn't seems to work always
> I have another mapping in the same file as where F8 is defined and
> that doesn't appear
> :verbose map <C-j>
>
> Why is that?

because :map only lists mappings for the normal, visual/select
and operator pending mode, while :map! displays active mappings for insert
mode and command-line mode.

So in addition to :verbose map you probably also want :verbose :map!

regards,
Christian

--
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

No comments: