Keyword completion

2006-09-20 Thread Gautam Iyer
Hi All,

Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N,
can we get vim to complete from the list of syntax keywords?

Better still say from a specified group? Or does one have to write out
these keywords separately in a completion file?

Thanks,

GI

-- 
A hangover is the wrath of grapes.


Re: Keyword completion

2006-09-20 Thread Martin Stubenschrott
On Wed, Sep 20, 2006 at 01:33:54PM -0700, Gautam Iyer wrote:
 Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N,
 can we get vim to complete from the list of syntax keywords?

You can do that by setting:

:set omnifunc=syntaxcomplete#Complete

and then use c-xc-o

You can also specifiy certain syntax groups too use, but look into the
docs/scripts, how to do that.

--
Martin


Re: [vim-dev] Re: Keyword completion

2006-09-20 Thread Gautam Iyer
On Wed, Sep 20, 2006 at 10:41:58PM +0200, Martin Stubenschrott wrote:

  Maybe this has been discussed already: When pressing Ctrl-P / Ctrl-N,
  can we get vim to complete from the list of syntax keywords?
 
 You can do that by setting:
 
 :set omnifunc=syntaxcomplete#Complete
 
 and then use c-xc-o
 
 You can also specifiy certain syntax groups too use, but look into the
 docs/scripts, how to do that.

Great! Thanks,

Gautam

-- 
'Common' Proof Techniques:
10. Proof by cumbersome notation -- Best done with access to at least
four alphabets and special symbols.