Martin Stubenschrott wrote:
On Sat, Jan 27, 2007 at 07:35:16PM +0100, Bram Moolenaar wrote:
Whatever this ends up to be: Please send me the best javascript indent
script, so that I can include it with the runtime files. A "best guess"
is better than nothing.
Full ack.
BTW: The last time I browsed the updated runtime/ repository, there was
no cppcomplete.vim in the autoload/ directory. I really recommend this
omnicomplete script from vim.org's script repository for all C++
code editing, I even use it for coding C, because (in my opinion) it
works better there than ccomplete.vim.
Hope that gets added to the default vim 7.1 distribution, because it's
quite the best working omni complete script I have seen so far.
--
Martin
For all file types which have no specific omnicomplete script, I recommend to
enable "syntax" omni-completion, as followed (inspired from ":help
ft-synrax-omni"):
--- 8< --- start $VIM/vimfiles/after/plugin/syntaxcomplete.vim
if has("autocmd") && exists("+omnifunc")
augroup syntaxcomplete
autocmd Filetype *
\ if &omnifunc == "" |
\ setlocal omnifunc=syntaxcomplete#Complete |
\ endif
augroup END
endif
--- >8 --- end $VIM/vimfiles/after/plugin/syntaxcomplete.vim
The idea of placing it in an "after-directory" is so its autocommand gets
defined (and, therefore, executed) as late as possible.
Best regards,
Tony.