> I thought I could use whole line completion.  So I tried making a file
> containing:
> COMPOSER=Ludwig van Beethoven
> and then setting it as the value of 'complete,' erasing the default
> value of 'complete'. But if I'm on a line containing
> COMPOSER=L
> and I type <C-X><C-L>, it tells me "Pattern not found."

I'm not sure what you changed 'complete' to, but by default, it 
should be ".,w,b,u,t,i" (it takes flags, not a file-name).  With 
these default options, if I have such a "cheat" buffer open 
(containing lines such as you

  COMPOSER=Ludwig van Beethoven
  COMPOSER=Johann Strauss
  COMPOSER=Johann Sebastian Bach

in it), using <c-x><c-L> successfully suggests the line in 
question.  So if I type "COMPOSER=J" followed by <c-x><c-l>, it 
suggests both Strauss & Bach.

Alternatively, you could create a bunch of ":iab" expansions, so 
you could :source a file containing things such as

   iab LvB Ludwig von Beethoven
   iab JS Johann Strauss
   iab JSB Johann Sebastian Bach
   iab AV Antonio Vivaldi
   ...

then you can just type "COMPOSER=LvB" and it should expand your 
abbreviation.

-tim




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

Reply via email to