reporting maps

2011-12-10 Thread meino . cramer
Hi, is there a way to script a vim function which returns the function a certain hotkey is bound to? Mapped keys can be reported via 'map' and friends. But how can I report for example the function behind I ? Thank you very much in advance for any help! Have a nice weekend! Best regards, mcc

Re: reporting maps

2011-12-10 Thread Taylor Hedberg
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. pgpJUsHhd20U6.pgp Description: PGP signature

Re: reporting maps

2011-12-10 Thread meino . cramer
Taylor Hedberg tmhedb...@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

Re: reporting maps

2011-12-10 Thread Marcin Szamotulski
On 20:01 Sat 10 Dec , meino.cra...@gmx.de wrote: Taylor Hedberg tmhedb...@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

Re: reporting maps

2011-12-10 Thread Taylor Hedberg
Hmm, maybe I'm not quite sure what you're asking, but you can definitely remap `f` to whatever you want, overriding the default behavior. All I was saying was that the built-in, default mappings for commands like `f` and `I` do not correspond to functions that Vim exposes to the user, so unlike

Re: reporting maps

2011-12-10 Thread Gary Johnson
On 2011-12-10, meino cramer wrote: Taylor Hedberg [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