All Projects β†’ vim-scripts β†’ Javacomplete

vim-scripts / Javacomplete

Omni Completion for JAVA

Labels

Projects that are alternatives of or similar to Javacomplete

Vim Grepper
πŸ‘Ύ Helps you win at grep.
Stars: ✭ 1,030 (+1843.4%)
Mutual labels:  viml
Vim Seeing Is Believing
Stars: ✭ 50 (-5.66%)
Mutual labels:  viml
Buffet.vim
A vimplugin for switching and managing buffer lists
Stars: ✭ 52 (-1.89%)
Mutual labels:  viml
Plaintasks.vim
An implementation of Sublime's PlainTasks plugin for Vim
Stars: ✭ 45 (-15.09%)
Mutual labels:  viml
Vim Js Indent
JavaScript indentation for VIM
Stars: ✭ 49 (-7.55%)
Mutual labels:  viml
Vim Qargs
A Vim plugin that adds a :Qargs utility command, for populating the argument list from the files in the quickfix list.
Stars: ✭ 50 (-5.66%)
Mutual labels:  viml
Vimrc
πŸ’Ί Options for my preferred text editor.
Stars: ✭ 43 (-18.87%)
Mutual labels:  viml
Bookmark
[DEPRECATED] μ›Ή 즐겨찾기
Stars: ✭ 53 (+0%)
Mutual labels:  viml
Cscope.vim
create cscope database and connect to existing proper database automatically.
Stars: ✭ 49 (-7.55%)
Mutual labels:  viml
Fmacvim
MacVim + essential plugins + my custom (and awesome) .vimrc
Stars: ✭ 52 (-1.89%)
Mutual labels:  viml
Unite Colorscheme
A unite.vim plugin
Stars: ✭ 45 (-15.09%)
Mutual labels:  viml
Vim Smartword
Vim plugin: Smart motions on words
Stars: ✭ 48 (-9.43%)
Mutual labels:  viml
Vim Lookup
Jump to the definition of variables or functions in VimL code.
Stars: ✭ 51 (-3.77%)
Mutual labels:  viml
Arua Meta
Standards, RFCs and discussion of the Arua language
Stars: ✭ 45 (-15.09%)
Mutual labels:  viml
Pep8
Check your python source files with PEP8
Stars: ✭ 52 (-1.89%)
Mutual labels:  viml
Vimrc1234567
Personalized vimrc with C++, Markdown, and text editing at its core.
Stars: ✭ 44 (-16.98%)
Mutual labels:  viml
Vimtips Fortune
A vimtips to fortune software.
Stars: ✭ 50 (-5.66%)
Mutual labels:  viml
Ansible Splunk Simple
Simple deployment of Splunk using Ansible, static host lists.
Stars: ✭ 53 (+0%)
Mutual labels:  viml
Viki vim
A personal wiki for Vim
Stars: ✭ 52 (-1.89%)
Mutual labels:  viml
Ctrlp Extensions.vim
Plugins for ctrlp.vim
Stars: ✭ 51 (-3.77%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1785

This is javacomplete, an omni-completion script of JAVA language for vim 7.

It includes javacomplete.vim, java_parser.vim, Reflection.java, and javacomplete.txt

Features:

  • List members of a class, including (static) fields, (static) methods and ctors.
  • List classes or subpackages of a package.
  • Provide parameters information of a method, list all overload methods.
  • Complete an incomplete word.
  • Provide a complete JAVA parser written in Vim script language.
  • Use the JVM to obtain most information.
  • Use the embedded parser to obtain the class information from source files.
  • Tags generated by ctags can also be used.
  • JSP is supported, Builtin objects such as request, session can be recognized. The classes and jar files in the WEB-INF will be appended automatically to classpath.

Requirements: It works on all the platforms where

  • Vim version 7.0 and above
  • JDK version 1.1 and above existed

Input context: It recognize nearly all kinds of Primary Expressions (see langspec-3.0) except for "Primary.new Indentifier". Casting conversion is also supported. Samples of input contexts are as following: ('|' indicates cursor) (1). after '.', list members of a class or a package - package.| subpackages and classes of a package - Type.| static members of the 'Type' class and "class" - var.| or field.| members of a variable or a field - method().| members of result of method() - this.| members of the current class - ClassName.this.| members of the qualified class - super.| members of the super class - array.| members of an array object - array[i].| array access, return members of the element of array - "String".| String literal, return members of java.lang.String - int.| or void.| primitive type or pseudo-type, return "class" - int[].| array type, return members of a array type and "class" - java.lang.String[].| - new int[].| members of the new array instance - new java.lang.String[i=1][].| - new Type().| members of the new class instance - Type.class.| class literal, return members of java.lang.Class - void.class.| or int.class.| - ((Type)var).| cast var as Type, return members of Type. - (var.method()).| same with "var.|" - (new Class()).| same with "new Class().|"

(2). after '(', list matching methods with parameters information. - method(|) methods matched - var.method(|) methods matched - new ClassName(|) constructors matched - this(|) constructors of current class matched - super(|) constructors of super class matched Any place between '(' and ')' will be supported soon. Help information of javadoc is not supported yet.

(3). after an incomplete word, list all the matched beginning with it. - var.ab| subset of members of var beginning with ab - ab| list of all maybes

(4). import statement - " import java.util.|" - " import java.ut|" - " import ja|" - " import java.lang.Character.|" e.g. "Subset" - " import static java.lang.Math.|" e.g. "PI, abs"

(5). package declaration - " package com.|"

The above are in simple expression. (6). after compound expression: - PrimaryExpr.var.| - PrimaryExpr.method().| - PrimaryExpr.method(|) - PrimaryExpr.var.ab| e.g. - "java.lang . System.in .|" - "java.lang.System.getenv().|" - "int.class.toString().|" - "list.toArray().|" - "new ZipFile(path).|" - "new ZipFile(path).entries().|"

(7). Nested expression: - "System.out.println( str.| )" - "System.out.println(str.charAt(| )" - "for (int i = 0; i < str.|; i++)" - "for ( Object o : a.getCollect| )"

Limitations: The embedded parser works a bit slower than expected.

TODO:

  • Improve performance of the embedded parser. Incremental parser.
  • Add quick information using balloonexpr, ballooneval, balloondelay.
  • Add javadoc
  • Give a hint for class name conflict in different packages.
  • Support parameter information for template
  • Make it faster and more robust.

Screenshots: members of a package, http://blog.chinaunix.net/photo/44758_070917101010.jpg members of a type, http://blog.chinaunix.net/photo/44758_070917101048.jpg local variable, http://blog.chinaunix.net/photo/44758_070917101134.jpg special reference super, http://blog.chinaunix.net/photo/44758_070917101158.jpg object of method result, http://blog.chinaunix.net/photo/44758_070917101236.jpg

FeedBack: Any problem, bug or suggest are welcome to send to [email protected]

BTW, If you want to get more functions on writting java program besides code completion, you can try VJDE. http://www.vim.org/scripts/script.php?script_id=1213

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].