2008/12/31 pansz <[email protected]>:

 > 程梁 写道:
 > > Thanks a lot for your help. What I want to get is that,
 > > turn off space or enter for expanding abbreviations and
 > > make other keys such as Ctrl+B do the same thing.
 > > Because I maybe define a lot abbreviations and I cannot
 > > map so much keys to an abbreviation. But thank you all
 > > the same.
 > >
 > > [...]
 > > What you need is a mapping, not abbr, see :help map for
 > > that.
 > >
 > > for example:
 > >
 > > :imap <C-B> for (i=0; i<; i++) {<esc>7hi
 > >
 > > Would map something you like to Ctrl+B, Try and see.
 >
 > I wonder whether you have tried my example or not, does
 > it work for you? Why you insist doing an abbreviation
 > while mapping suits your need a lot better? [...]

Mappings are short key sequences. What happens when you have
lots of :abbrevs? You need longer names so that you can
remember them easily. Long key sequences for mappings are
unwieldy: you can't see what you are typing and they time
out. You can backspace and correct a typo in an :abbrev and
it will still work. --Antony

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to