Saluton scott :) scott <t...@swbell.net> dixit: > On Friday 31 July 2009 12:52:19 Raúl Núñez de Arenas Coronado > wrote: >> You can do that with iabbr, too, but since the iabbr will be >> triggered mostly using <Space> (I mean, "sout<Space>") you >> will end up with an space between the "", which may or may not >> be what you want. The imap is better in that sense. > > unless you add the Eatchar function, as documented in > > :help iabbreviation > > by adding > > function! Eatchar(pat) > let c = nr2char(getchar(0)) > return (c =~ a:pat) ? '' : c > endfunction
Yes! Thanks a lot for the advice, this is something I've always missed in the help for iabbr O:) Very useful, since most of the time I prefer iabbr over imap for certain things. -- Raúl "DervishD" Núñez de Arenas Coronado Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen! --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---