In general, yes. Many vi commands are made up of a command sentence. Each action in the sentence is implemented as a sub-node of the previous action. For example, here are some typical vi commands:
dw = D'elete to the end of the current W'ord dtw = D'elete To the next 'w' character dfw = D'elete up to and including the next F'ound 'w' character So, as you type each character, I am tracking what has been typed by entering a new mode. The 2nd to last character in the sequence is mapped to a @mode node containing a list of the last keys in the sequence which are either mapped to a Leo command directly (if a single Leo key maps directly to the vi functionality) or, more likely, to a 'macro' @mode node containing a list of Leo commands that are emulating the vi functionality as close as possible. Better solution would be to have a Leo/Python coder take on the effort to modify and/or create some Leo commands which would more closely fit the vi functionality. I could then eliminate or at least simplify the @mode macros and actually accurately emulate the vi functionality. Any takers? Regards, TL --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
