> As the subject says, if I create a class that ultimately defines a mapping
> when a new instance is created, unfortunately the mapping can't access the
> "this" variable of the instance.
>
> Is there a way to do this I'm not seeing in the documentation?
You probably need to use a closure. That is the only way you can bind a
variable and pass the reference around. You can find hints around
":help E1271".
Keep in mind that mappings work in the global namespace. To access
something local to the script you can use <SID> or <ScriptCmd>.
You may first give <ScriptCmd> a try.
--
hundred-and-one symptoms of being an internet addict:
158. You get a tuner card so you can watch TV while surfing.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///