Dnia sobota, 6 maja 2006 00:01, Eric Arnold napisał: > On 5/5/06, Mikolaj Machowski <[EMAIL PROTECTED]> wrote: > > Dnia piątek, 5 maja 2006 14:35, Eric Arnold napisał: > > > I think [email protected] is probably a place to start... > > > > > > I've been hacking the statusline for a long time to do various > > > things a keystroke at a time. I've finally got a compiling env, so > > > I decided to take a stab a creating a key-event. > > > > Very, very, very good thing. It makes possible high-level of > > automation for some things - eg. map Space and pry it will not > > interfere with some scripts. > > > > Personally I'd like to see separation for Insert and Normal mode > > (GetChar, GetCharI?). > > I think 'mode()' will probably suffice for this?
I've had bad experiences in the past with mode(). But maybe they were only my things - I didn't really have time to test various possibilities of v:getchar. BTW - general rule for v:variables is they are read-only. Would be good thing to keep consistency. I knot it is late but this would be really good addition to Vim7. For example it could automatically open omnicompletion menu after some letters and in desired context - no need to press <C-X><C-O> (or equivalent)! Possibilities are endless. m.
