Excerpts from Corey O'Connor's message of Tue Jul 22 18:46:16 +0200 2008:
> 
> Suppose I'd like to extend the Vim keymap's insert mode, but I'd like
> to do so in a user-specific manner. Seems like I cannot do so with the
> current implementation: it's fairly easy to add a new choice to the
> cmd_mode interact process, but adding to just the insert mode keymap
> would be difficult.
> 
> One implementation that would allow, hopefully, easy extension of each
> mode's keymap is: Defining the vim keymap be a product of a data
> structure which contains a field defining each mode's keymap. EG:
> (In Yi/Keymap/Vim.hs)
> keymap = makeVimKeymap defKeymapConfig
> 
> Which would hopefully allow config-like customization of the Vim
> keymap in the user's yi.hs. Something like:
> 
> keymap = defKeymapConfig { insModeKeymap = myCustomAction <||
> (insModeKeymap defKeymapConfig) }
> 
> An extension of which would be to create a framework for adding new modes.
> 
> Does this sound reasonable? Or is there something I'm missing that
> would simplify this?

This seems reasonable, I just hope that this won't complicate to much the Vim
keymap.

-- 
Nicolas Pouillard aka Ertai

Attachment: signature.asc
Description: PGP signature

Reply via email to