On Thu, Feb 26, 2009 at 12:19 AM, Tuomas Pyyhtiä <[email protected]> wrote: > Thanks for the suggestion. Although abbreviations are great, they don't get > the job done here as I would have to define and memorize 10000 abbreviations > and that seems highly impractical. It seems to be that I am not alone with > this problem as some other user has commented (last comment) a similar case > here: http://vim.wikia.com/wiki/Dictionary_completions
Hmm, maybe this will help: Whole line completion. :he i_CTRL-X_CTRL-L You can make an insert mode mapping to isolate the beginning portion of the phrase that you would like to complete, and then perform an i_CTRL-X_CTRL-L command on that. By isolate here I mean putting in on a single line of its own, otherwise the whole-line completion wouldn't work. This should give you a nice omni-completion window with the possible phrases to complete. Once you complete the phrase you may need to have another mapping to join/format the newly completed phrase into the previous sentence. You'll also need to make use of the 'complete' option to tell vim where to look for the 10000 phrases that you have (all in one file, one line each). nazri. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
