On Tue, Feb 10, 2009 at 09:00:19AM -0800, Tom Link wrote: > > > For example, with a such entry in my aliases file : > > alias chuck Chuck Nurris <[email protected]> > > could have a (case insensitive) completion based on the alias, the first > > name, name or the email. > > The simplest solution would be to keep the e-mails in a dictionary but > that wouldn't meet your requirements. I think you could write a > completefunc, that reads the file with readfile() and returns a list > of lines (but without the alias part) that match the arglead. > > :h completefunc > :h complete-functions > > This could be done without affecting other buffers. Ah, my :iabbrev solution would prevent you from every typing `mom' again :P But could something similar be sourced if, say ft=mail? I like this idea personally for automatically inserting preformatted or canned text, or name/email/phone#'s from a file while I'm typing out an email. I'm not entirely sure if this is what the OP was about.
--~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
