On Friday, August 17, 2012 8:36:59 AM UTC-5, Chiel92 wrote:
> Small question:
> 
> If I want to enable onmicompletion for javascript, what is the difference 
> between these two: 
> "set ofu=javascriptcomplete#CompleteJS" 
> and 
> "set ofu=syntaxcomplete#Complete"?
> 
> 
> 
> Kind regards

They're using two completely different completion functions.

The first looks like it is a script designed for working with javascript.

The second is a generic "scan the syntax file for keyword definitions" 
completion method. See :help ft-syntax-omni. You probably want to use the 
first, as the second is more of a fallback if there's nothing better available.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui