Saturday, December 10, 2011

Re: reporting maps

On 20:01 Sat 10 Dec , meino.cramer@gmx.de wrote:
> Taylor Hedberg <tmhedberg@gmail.com> [11-12-10 18:12]:
> > Vim's built-in mappings like `I` aren't mapped to any function. Well,
> > they're mapped to a C function in the Vim source code, but not to any
> > VimScript function whose name would be useful for a user. So no, there's
> > no way to do this.
>
> Hi Taylor,
>
> thank you for your reply! :)
>
> Did I understand this correctly? :
>
> For example 'f' is bound to the C-function which set sthe cursor
> to the a certain character given to it as a parameter.
> That would mean: I am able to map another key to this functionality
> by mapping 'f' to another key but I will not be able to 'free' the
> f-key so it can be used for another functionality ?!?!?
>
> Best regards,
> mcc
>
>
> --
> 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 can map the 'f' key to whatever VimL command/function you want. You can
read ':help map.txt'. If you want 'f' to do nothing map it to <Nop> (see
:help <Nop>, and :help map_empty_rhs).

Best,
Marcin

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