Update: the vim plug-in now includes this feature. If you press Tab after a valid latex sequence, it substitutes it, otherwise it falls-back to whatever was previously mapped for Tab. Or at least that's what it's supposed to do.
On Thursday, May 22, 2014 10:03:39 PM UTC+2, Stefan Karpinski wrote: > > No true vim user types so slowly that this is a problem. > > > On Thu, May 22, 2014 at 3:59 PM, Steven G. Johnson > <[email protected]<javascript:> > > wrote: > >> >> >> On Thursday, May 22, 2014 3:03:39 PM UTC-4, Miguel Bazdresch wrote: >>> >>> In vim, you can do something like >>> >>> imap \alpha<TAB> <C-V>u03b1 >>> >>> to reproduce this behavior. >>> >> >> This works, sort of, but I find it a bit annoying. If you are too slow >> in typing "\alpha" then it doesn't perform the substitution. If you type >> it quickly, it works, but you have to type it blindly because vim doesn't >> move the cursor (the characters "\alpha" fall on top of one another as you >> type). Worse, it makes it harder t >> >> I find it much nicer to be able to type \alpha, see what I'm doing, and >> then type <TAB> at any later point in time, only when I'm ready to make the >> substitution. Presumably you can program vim to do this, but it may not >> be as simple as "imap"? >> >> On the other hand, I'm not a vi user. Maybe an editing mode that >> requires rapid, blind typing would fit right in with that editor. ;-) >> > >
