Skip to content

Commit

Permalink
add javacomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
vgod committed Mar 20, 2011
1 parent 030af52 commit bb3df04
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -37,3 +37,6 @@
[submodule "bundle/OmniCppComplete"]
path = bundle/OmniCppComplete
url = https://github.com/vim-scripts/OmniCppComplete.git
[submodule "bundle/javacomplete"]
path = bundle/javacomplete
url = https://github.com/vim-scripts/javacomplete
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -42,8 +42,6 @@ PLUGINS

* [Pathogen](http://www.vim.org/scripts/script.php?script_id=2332): Pathogen let us install a plugin as a bundle in ~/.vim/bundle seprately.

* [vim-latex](http://vim-latex.sourceforge.net/): Latex support.

* [AutoClose](http://www.vim.org/scripts/script.php?script_id=1849): Inserts matching bracket, paren, brace or quote.

* [vim-surround](https://github.com/tpope/vim-surround/blob/master/doc/surround.txt): deal with pairs of surroundings.
Expand Down Expand Up @@ -71,6 +69,12 @@ PLUGINS
Note: MacVim users need to enable "Use experimental renderer" to see
graphical icons.

* [vim-latex](http://vim-latex.sourceforge.net/): Latex support.

* [OmniCppComplete](http://www.vim.org/scripts/script.php?script_id=1520): C/C++ omni-completion with ctags database.

* [JavaComplete](http://www.vim.org/scripts/script.php?script_id=1785): Java Omni-completion.


Language specific supports
--------------------------
Expand Down
1 change: 1 addition & 0 deletions bundle/javacomplete
Submodule javacomplete added at f3d9ce
10 changes: 9 additions & 1 deletion vimrc
Expand Up @@ -218,7 +218,6 @@ endfun


" Enable omni completion. (Ctrl-X Ctrl-O)
set ofu=syntaxcomplete#Complete
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
Expand All @@ -227,6 +226,15 @@ autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType c set omnifunc=ccomplete#Complete
autocmd FileType java set omnifunc=javacomplete#Complete

" use syntax complete if nothing else available
if has("autocmd") && exists("+omnifunc")
autocmd Filetype *
\ if &omnifunc == "" |
\ setlocal omnifunc=syntaxcomplete#Complete |
\ endif
endif


" make CSS omnicompletion work for SASS and SCSS
autocmd BufNewFile,BufRead *.scss set ft=scss.css
autocmd BufNewFile,BufRead *.sass set ft=sass.css
Expand Down

0 comments on commit bb3df04

Please sign in to comment.