On 10/10/09 08:17, Benoit Mortgat wrote:
>     Hi,
>
>       when I do a
>
>         :verbose map <key>
>
>
> possibly it's not a mapping but an abbreviation. Also think of :verbose
> {i,c}abbr <key>
>
> Have a nice day.

Also, ":map" (with no exclamation mark) will list only mappings for 
Normal, Visual and Operator-pending modes -- roughly speaking, the modes 
where you don't expect printing keys to insert a character in the text 
(but Visual includes Select here though).

With an exclamation mark, ":map!" lists the mappings for Insert/Replace 
and Command-line modes -- modes where what you type is inserted as text, 
either in the edit buffer or on the command-line.

Note also that this effect of 'verbose' on the output of the ":map" (and 
nmap, imap, etc.) commands is new in Vim 7. Prior than that, only ":set" 
(and :setl and :setg) would tell you where that setting had been set (or 
nothing if set either by default or at the keyboard).

Finally, if Vim says "No mapping found" it doesn't mean that the key is 
a no-op -- most keys (with the notable exception of F keys other than F1 
and sometimes F10) have a "default binding" in Vim, which can be found 
by invoking the help for that key, possibly with a prefix showing the 
mode. Examples:

        :help j
                the j key in Normal mode
        :help v_o
                the o key in Visual mode
        :help i_CTRL-O
                the Ctrl-O key in Insert mode
        :help c_CTRL-F
                the Ctrl-F key in Command-line mode

See ":help help-context" about these prefixes.


Best regards,
Tony.
-- 
Romeo wasn't bilked in a day.
                -- Walt Kelly, "Ten Ever-Lovin' Blue-Eyed Years With
                   Pogo"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to