├── eclim ├── doc │ ├── 404.txt │ ├── vim │ │ ├── core │ │ │ ├── index.txt │ │ │ └── history.txt │ │ ├── search.txt │ │ ├── python │ │ │ ├── complete.txt │ │ │ ├── index.txt │ │ │ ├── validate.txt │ │ │ ├── search.txt │ │ │ └── path.txt │ │ ├── validation.txt │ │ ├── index.txt │ │ ├── java │ │ │ ├── complete.txt │ │ │ ├── webxml.txt │ │ │ ├── types.txt │ │ │ ├── maven.txt │ │ │ ├── index.txt │ │ │ ├── format.txt │ │ │ ├── import.txt │ │ │ ├── java.txt │ │ │ ├── logging.txt │ │ │ └── javadoc.txt │ │ ├── refactoring.txt │ │ ├── settings.txt │ │ ├── javascript │ │ │ └── index.txt │ │ └── html │ │ │ └── index.txt │ ├── relatedprojects.txt │ ├── development │ │ ├── index.txt │ │ ├── installer.txt │ │ └── architecture.txt │ ├── gettinghelp.txt │ ├── features.txt │ └── contribute.txt ├── dict │ └── java ├── bin │ └── bash_complete ├── syntax │ ├── eclim_filelist.vim │ ├── junitresult.vim │ ├── wsdl.vim │ ├── webxml.vim │ ├── ivy.vim │ ├── spring.vim │ ├── tld.vim │ ├── hibernate.vim │ ├── mvn_pom.vim │ ├── forreststatus.vim │ ├── strutsconfig.vim │ ├── eclipse_classpath.vim │ ├── forrestdocument.vim │ ├── commonsvalidator.vim │ ├── eclimhelp.vim │ ├── gant.vim │ ├── groovy_simple_template.vim │ ├── perl.vim │ ├── java.vim │ ├── xml.vim │ ├── mysql.vim │ ├── log4j.vim │ ├── sql.vim │ ├── hg.vim │ ├── html.vim │ ├── css.vim │ └── ant.vim ├── ftplugin │ ├── strutsconfig.vim │ ├── xml_complete.vim │ ├── make.vim │ ├── gant.vim │ ├── tld.vim │ ├── wsdl.vim │ ├── junitresult.vim │ ├── spring.vim │ ├── forrestdocument.vim │ ├── forreststatus.vim │ ├── commonsvalidator.vim │ ├── java-xml.vim │ ├── dtd.vim │ ├── mvn_pom.vim │ ├── eclimhelp.vim │ ├── xsd.vim │ ├── hibernate.vim │ ├── log4j.vim │ ├── ant.vim │ ├── css.vim │ ├── ivy.vim │ ├── xml.vim │ ├── javascript.vim │ ├── html.vim │ ├── webxml.vim │ └── eclipse_classpath.vim ├── autoload │ └── eclim │ │ ├── java │ │ ├── ant │ │ │ ├── ivy.vim │ │ │ └── util.vim │ │ ├── new.vim │ │ └── src.vim │ │ ├── taglisttoo │ │ └── lang │ │ │ ├── eclimhelp.vim │ │ │ ├── gant.vim │ │ │ ├── spring.vim │ │ │ ├── junit.vim │ │ │ ├── commonsvalidator.vim │ │ │ ├── forrest.vim │ │ │ ├── hibernate.vim │ │ │ ├── webxml.vim │ │ │ └── wsdl.vim │ │ ├── javascript │ │ └── complete.vim │ │ ├── css │ │ ├── validate.vim │ │ └── complete.vim │ │ ├── html │ │ ├── complete.vim │ │ └── validate.vim │ │ ├── common │ │ ├── largefile.vim │ │ └── license.vim │ │ ├── display │ │ ├── fold.vim │ │ └── menu.vim │ │ ├── xml │ │ ├── validate.vim │ │ ├── complete.vim │ │ └── definition.vim │ │ └── client │ │ └── python │ │ └── nailgun.vim ├── compiler │ ├── eclim_xmllint.vim │ ├── eclim_javadoc.vim │ ├── eclim_mvn.vim │ ├── eclim_make.vim │ ├── eclim_maven.vim │ └── eclim_ant.vim ├── plugin │ ├── ftdetect_jdt.vim │ ├── java_tools.vim │ ├── settings_web.vim │ └── ftdetect.vim └── indent │ ├── css.vim │ └── dtd.vim ├── install.sh └── README.md /eclim/doc/404.txt: -------------------------------------------------------------------------------- 1 | *404.html* 2 | 3 | Page Not Found 4 | ************** 5 | 6 | The page you requested does not exist or may have been moved. 7 | 8 | You can use the "Site" drop down or the search box in the nav bar 9 | above to search for your desired topic. 10 | 11 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/core/index.txt: -------------------------------------------------------------------------------- 1 | *vim-core-index.html* 2 | 3 | Core Functionality 4 | ****************** 5 | 6 | - Eclim Manage / Config (vim-core-eclim) 7 | - Eclipse Project Management (vim-core-project) 8 | - Eclipse Local History (vim-core-history) 9 | - Locate File (vim-core-locate) 10 | - Utility Commands (vim-core-util) 11 | 12 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/dict/java: -------------------------------------------------------------------------------- 1 | author 2 | abstract 3 | boolean 4 | case 5 | catch 6 | char 7 | class 8 | double 9 | extends 10 | false 11 | final 12 | finally 13 | float 14 | implements 15 | int 16 | interface 17 | link 18 | new 19 | package 20 | param 21 | private 22 | protected 23 | public 24 | return 25 | short 26 | static 27 | switch 28 | throw 29 | throws 30 | true 31 | try 32 | version 33 | -------------------------------------------------------------------------------- /eclim/doc/vim/search.txt: -------------------------------------------------------------------------------- 1 | *vim-search.html* 2 | 3 | - g:EclimQuickFixOpen (Default: 'botright copen') Specifies the 4 | command used to open the quickfix window when multiple results are 5 | found. 6 | - g:EclimQuickFixHeight (Default: 10) - Sets the height, in lines, 7 | of the quickfix window when eclim opens it to display search 8 | results. 9 | 10 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/python/complete.txt: -------------------------------------------------------------------------------- 1 | *vim-python-complete.html* 2 | 3 | Python Code Completion 4 | ********************** 5 | 6 | Python code completion uses the standard Vim code completion mechanism 7 | (|vim-code_completion|) like so: 8 | 9 | > 10 | 11 | class Test (object): 12 | def testMethod (self): 13 | pass 14 | 15 | t = Test() 16 | t.te 17 | t.testMethod 18 | 19 | < 20 | 21 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/bin/bash_complete: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ## 3 | # Script to manually invoke a bash completion function and print the results 4 | # one result per line. 5 | ## 6 | 7 | . /etc/bash_completion 8 | 9 | COMP_FUNC=$1 10 | shift 11 | COMP_WORDS=("${@}") 12 | COMP_CWORD=$((${#COMP_WORDS[@]}-1)) 13 | 14 | CMD=${COMP_WORDS[0]} 15 | CUR=${COMP_WORDS[$COMP_CWORD]} 16 | PRE=${COMP_WORDS[$(($COMP_CWORD-1))]} 17 | 18 | $COMP_FUNC $CMD $CUR $PRE 19 | for reply in ${COMPREPLY[@]} ; do 20 | echo $reply 21 | done 22 | -------------------------------------------------------------------------------- /eclim/doc/vim/validation.txt: -------------------------------------------------------------------------------- 1 | *vim-validation.html* 2 | 3 | Note: When enabled, syntastic 4 | (https://github.com/scrooloose/syntastic) is disabled so that eclim 5 | and syntastic don't step on each other. If you'd like to use 6 | syntastic over eclim for validation, then simply disable eclim's 7 | validation.If you'd like to disable eclim's source code validation 8 | for all languages, eclim provides a global variable for that as 9 | well:> 10 | 11 | let g:EclimFileTypeValidate = 0 12 | 13 | < 14 | 15 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/relatedprojects.txt: -------------------------------------------------------------------------------- 1 | *relatedprojects.html* 2 | 3 | Related Projects 4 | **************** 5 | 6 | 7 | Eclim clients for other editors: 8 | ================================ 9 | 10 | - Emacs (emacs-eclim (http://github.com/senny/emacs-eclim)) 11 | - Sublime Text 2 (Subclim (http://github.com/JulianEberius/Subclim)) 12 | - Texmate (Eclim.tmbundle 13 | (http://github.com/JulianEberius/Eclim.tmbundle)) 14 | 15 | Vim emulator plugins for Eclipse: 16 | ================================= 17 | 18 | - Vrapper (http://vrapper.sourceforge.net) (free and open source) 19 | - viPlugin (http://www.satokar.com/viplugin/index.php) 20 | - Viable (http://viableplugin.com) 21 | 22 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/index.txt: -------------------------------------------------------------------------------- 1 | *vim-index.html* 2 | 3 | Documentation 4 | ************* 5 | 6 | 7 | Core Functionality 8 | ================== 9 | 10 | - The Eclim Daemon (eclimd) 11 | - Core Functionality (vim-core-index) 12 | - Eclim Manage / Config (vim-core-eclim) 13 | - Eclipse Project Management (vim-core-project) 14 | - Eclipse Local History (vim-core-history) 15 | - Locate File (vim-core-locate) 16 | - Utility Commands (vim-core-util) 17 | 18 | Supported Languages 19 | =================== 20 | 21 | - Html / Css (vim-html-index) 22 | - Java (vim-java-index) 23 | - Javascript (vim-javascript-index) 24 | - Python (vim-python-index) 25 | - Xml / Dtd / Xsd (vim-xml-index) 26 | 27 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/development/index.txt: -------------------------------------------------------------------------------- 1 | *development-index.html* 2 | 3 | Development Docs 4 | **************** 5 | 6 | Developers Guide (|development-gettingstarted|) 7 | 8 | Architecture (|development-architecture|) 9 | Explains the underlying architecture that eclim utilizes including 10 | an overview of the call sequence from vim to eclipse. 11 | 12 | Commands (|development-commands|) 13 | Details the process of adding a new command to vim which calls to a 14 | corresponding implementation in eclipse. 15 | 16 | Plugins (|development-plugins|) 17 | Details the process of adding a new plugin to eclim. 18 | 19 | Building the eclim installer (|development-installer|) 20 | Short guide on how to build the eclim installer. 21 | 22 | ... More To Come 23 | 24 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | V="2.21.0" 4 | 5 | __download() { 6 | url="$1" 7 | dest="$2" 8 | if command -v wget >& /dev/null; then 9 | wget -c \ 10 | --no-check-certificate \ 11 | -O "$filename" \ 12 | "$url" 13 | elif command -v curl >& /dev/null; then 14 | curl --silent \ 15 | --output "$filename" \ 16 | -L "$url" 17 | else 18 | return 1 19 | fi 20 | } 21 | 22 | __main() { 23 | version=$1 24 | url="https://github.com/ervandew/eclim/releases/download/$V/eclim_$V.bin" 25 | shift 26 | filename=eclim_$V.bin 27 | if [ ! -f $filename ]; then 28 | __download $url $filename 29 | fi 30 | if [ -f $filename ]; then 31 | $SHELL $filename --yes --vimfiles=skip "$@" 32 | fi 33 | } 34 | 35 | __main $V $@ 36 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/complete.txt: -------------------------------------------------------------------------------- 1 | *vim-java-complete.html* 2 | 3 | Java Code Completion 4 | ******************** 5 | 6 | Java code completion uses the standard Vim code completion mechanism 7 | (|vim-code_completion|) like so: 8 | 9 | > 10 | 11 | System.o 12 | System.out.pri 13 | 14 | < 15 | 16 | 17 | Screenshot of completion in action: 18 | 19 | [image] 20 | 21 | 22 | Configuration 23 | ============= 24 | 25 | Vim Settings (|vim-settings|) 26 | 27 | *g:EclimJavaCompleteCaseSensitive* 28 | 29 | - g:EclimJavaCompleteCaseSensitive (Default: !&ignorecase) - When 30 | set to a value greater than 0, eclim will filter out completions 31 | that don't start with the same case base that you are attempting to 32 | complete (the base and the suggested completion must have the same 33 | case). 34 | 35 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/syntax/eclim_filelist.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | source $VIMRUNTIME/syntax/qf.vim 23 | 24 | " vim:ft=vim:fdm=marker 25 | -------------------------------------------------------------------------------- /eclim/syntax/junitresult.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for junit result files in xml format. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | -------------------------------------------------------------------------------- /eclim/syntax/wsdl.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for wsdl files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/webxml.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for web.xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/ivy.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for ivy's ivy.xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/spring.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for spring bean xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/tld.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for taglib definition files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/hibernate.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for hibernate mapping files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/mvn_pom.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for maven 2.x pom.xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/forreststatus.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for forrest status xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/strutsconfig.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for struts-config.xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/eclipse_classpath.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for eclipse .classpath files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/forrestdocument.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for forrest document xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/syntax/commonsvalidator.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for apache commons validator files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | " vim:ft=vim:fdm=marker 28 | -------------------------------------------------------------------------------- /eclim/ftplugin/strutsconfig.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | runtime eclim/ftplugin/java-xml.vim 27 | 28 | " vim:ft=vim:fdm=marker 29 | -------------------------------------------------------------------------------- /eclim/ftplugin/xml_complete.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Options {{{ 25 | 26 | exec 'setlocal ' . g:EclimCompletionMethod . '=eclim#xml#complete#CodeComplete' 27 | 28 | " }}} 29 | 30 | " vim:ft=vim:fdm=marker 31 | -------------------------------------------------------------------------------- /eclim/ftplugin/make.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Command Declarations {{{ 25 | 26 | if !exists(":CProjectConfigs") 27 | command -nargs=0 -buffer CProjectConfigs :call eclim#c#project#Configs() 28 | endif 29 | 30 | " }}} 31 | 32 | " vim:ft=vim:fdm=marker 33 | -------------------------------------------------------------------------------- /eclim/syntax/eclimhelp.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for eclim help files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | source $VIMRUNTIME/syntax/help.vim 26 | 27 | syn region helpExample matchgroup=helpIgnore start=" >$" start="^>$" end="^[^ \t]"me=e-1 end="^\s*<$" 28 | 29 | " vim:ft=vim:fdm=marker 30 | -------------------------------------------------------------------------------- /eclim/syntax/gant.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for gant build files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " set allowing of cpp keywords if only to prevent valid 'delete' task from 26 | " displaying as an error. 27 | let groovy_allow_cpp_keywords = 1 28 | 29 | runtime! syntax/groovy.vim 30 | 31 | hi link groovyUserLabel Normal 32 | 33 | " vim:ft=vim:fdm=marker 34 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/webxml.txt: -------------------------------------------------------------------------------- 1 | *vim-java-webxml.html* 2 | 3 | WEB-INF/web.xml 4 | *************** 5 | 6 | 7 | Validation 8 | ========== 9 | 10 | When editing a web.xml file eclim will default to validating the file 11 | when it is written. Any errors will be added to the current window's 12 | location list (:help location-list) and their corresponding line 13 | number noted via Vim's sign functionality. 14 | 15 | Eclim also combines the above validation with xml validation 16 | (vim-xml-index#xml-validation) to validate that the file is well 17 | formed. 18 | 19 | If you do not want your web.xml files validated automatically when 20 | saved, you can set the |g:EclimWebXmlValidate| variable described in 21 | the configuration section below. 22 | 23 | *:Validate_webxml* 24 | 25 | Whether or not auto validation has been enabled, eclim also exposes 26 | the command :Validate to manually execute the validation of the file. 27 | 28 | 29 | Configuration 30 | ============= 31 | 32 | Vim Settings (|vim-settings|) 33 | 34 | *g:EclimWebXmlValidate* 35 | 36 | - g:EclimWebXmlValidate (Default: 1) - If set to 0, disables 37 | validation when saving the file. 38 | 39 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/autoload/eclim/java/ant/ivy.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/java/classpath.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " SetRepo(path) {{{ 26 | " Sets the location of the ivy repository. 27 | function! eclim#java#ant#ivy#SetRepo(path) 28 | call eclim#java#classpath#VariableCreate('IVY_REPO', a:path) 29 | endfunction " }}} 30 | 31 | " vim:ft=vim:fdm=marker 32 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/eclimhelp.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Parse(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#eclimhelp#Parse(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['a', '\*([^ *]+)\*', 1], 28 | \ ['s', '\n([^\n]+)\n[=^-]{4,}', 1], 29 | \ ]) 30 | endfunction " }}} 31 | 32 | " vim:ft=vim:fdm=marker 33 | -------------------------------------------------------------------------------- /eclim/ftplugin/gant.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/groovy*.vim 25 | runtime! ftplugin/groovy/*.vim 26 | 27 | if !exists('g:tlist_gant_settings') 28 | let g:tlist_gant_settings = { 29 | \ 'lang': 'gant', 30 | \ 'parse': 'eclim#taglisttoo#lang#gant#Parse', 31 | \ 'tags': {'t': 'target', 'f': 'function'} 32 | \ } 33 | endif 34 | 35 | " vim:ft=vim:fdm=marker 36 | -------------------------------------------------------------------------------- /eclim/syntax/groovy_simple_template.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for template files using groovy's simple template syntax. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | syn region groovySimpleTemplateSection start="<%" end="%>" 26 | syn match groovySimpleTemplateVariable '\${.\{-}}' 27 | 28 | hi link groovySimpleTemplateSection Statement 29 | hi link groovySimpleTemplateVariable Constant 30 | 31 | " vim:ft=vim:fdm=marker 32 | -------------------------------------------------------------------------------- /eclim/ftplugin/tld.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | runtime eclim/ftplugin/java-xml.vim 27 | 28 | if !exists("g:tlist_tld_settings") 29 | let g:tlist_tld_settings = { 30 | \ 'lang': 'tld', 31 | \ 'parse': 'eclim#taglisttoo#lang#webxml#ParseTld', 32 | \ 'tags': {'t': 'tag'} 33 | \ } 34 | endif 35 | 36 | " vim:ft=vim:fdm=marker 37 | -------------------------------------------------------------------------------- /eclim/ftplugin/wsdl.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2010 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | if !exists('g:tlist_wsdl_settings') 25 | let g:tlist_wsdl_settings = { 26 | \ 'lang': 'wsdl', 27 | \ 'parse': 'eclim#taglisttoo#lang#wsdl#Parse', 28 | \ 'tags': { 29 | \ 't': 'types', 30 | \ 'm': 'messages', 31 | \ 'p': 'ports', 32 | \ 'b': 'bindings' 33 | \ } 34 | \ } 35 | endif 36 | 37 | " vim:ft=vim:fdm=marker 38 | -------------------------------------------------------------------------------- /eclim/ftplugin/junitresult.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | 27 | if !exists("g:tlist_junitresult_settings") 28 | let g:tlist_junitresult_settings = { 29 | \ 'lang': 'junitresult', 30 | \ 'parse': 'eclim#taglisttoo#lang#junit#Parse', 31 | \ 'tags': {'t': 'testcase', 'f': 'failure', 'o': 'output'} 32 | \ } 33 | endif 34 | 35 | " vim:ft=vim:fdm=marker 36 | -------------------------------------------------------------------------------- /eclim/compiler/eclim_xmllint.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Compiler for xmllint. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | if exists("current_compiler") 26 | finish 27 | endif 28 | let current_compiler = "eclim_xmllint" 29 | 30 | CompilerSet makeprg=xmllint\ --valid\ --noout\ $* 31 | 32 | CompilerSet errorformat= 33 | \%E%f:%l:\ %.%#\ error\ :\ %m, 34 | \%W%f:%l:\ %.%#\ warning\ :\ %m, 35 | \%-Z%p^, 36 | \%-C%.%#, 37 | \%-G%.%# 38 | 39 | " vim:ft=vim:fdm=marker 40 | -------------------------------------------------------------------------------- /eclim/ftplugin/spring.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | runtime eclim/ftplugin/java-xml.vim 27 | 28 | if !exists("g:tlist_spring_settings") 29 | let g:tlist_spring_settings = { 30 | \ 'lang': 'spring', 31 | \ 'parse': 'eclim#taglisttoo#lang#spring#Parse', 32 | \ 'tags': {'i': 'import', 'a': 'alias', 'b': 'bean'} 33 | \ } 34 | endif 35 | 36 | " vim:ft=vim:fdm=marker 37 | -------------------------------------------------------------------------------- /eclim/doc/development/installer.txt: -------------------------------------------------------------------------------- 1 | *development-installer.html* 2 | 3 | Building the eclim installer 4 | **************************** 5 | 6 | Unless you are working on improvements to the eclim installer, you 7 | shouldn't ever need to build it, but should the need arise here are 8 | the instructions for doing so. 9 | 10 | To build the installer you first need a couple external tools 11 | installed: 12 | 13 | - sphinx (http://sphinx-doc.org): Sphinx is used to build the eclim 14 | documentation which is included in the installer. 15 | Eclim also uses a custom sphinx theme which is included in eclim as 16 | a git submodule. So before you can build the installer you will need 17 | to initialize the submodule: 18 | 19 | > 20 | $ git submodule init 21 | $ git submodule update 22 | 23 | < 24 | 25 | - graphviz (http://www.graphviz.org/): The docs include a few uml 26 | diagrams which are generated using plantuml 27 | (http://plantuml.sourceforge.net/) (included in the eclim source 28 | tree) which in turn requires graphviz (http://www.graphviz.org/). 29 | Once you have installed the above dependencies, you can then build the 30 | eclim installer with the following command. 31 | 32 | > 33 | 34 | $ ant dist 35 | 36 | < 37 | 38 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/ftplugin/forrestdocument.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | 27 | set textwidth=80 28 | 29 | if !exists('g:tlist_forrestdocument_settings') 30 | let g:tlist_forrestdocument_settings = { 31 | \ 'lang': 'forrestdocument', 32 | \ 'parse': 'eclim#taglisttoo#lang#forrest#ParseDocument', 33 | \ 'tags': {'s': 'section'} 34 | \ } 35 | endif 36 | 37 | " vim:ft=vim:fdm=marker 38 | -------------------------------------------------------------------------------- /eclim/ftplugin/forreststatus.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | 27 | set textwidth=80 28 | 29 | if !exists('g:tlist_forreststatus_settings') 30 | let g:tlist_forreststatus_settings = { 31 | \ 'lang': 'forreststatus', 32 | \ 'parse': 'eclim#taglisttoo#lang#forrest#ParseStatus', 33 | \ 'tags': {'t': 'todo', 'r': 'release'} 34 | \ } 35 | endif 36 | 37 | " vim:ft=vim:fdm=marker 38 | -------------------------------------------------------------------------------- /eclim/doc/vim/python/index.txt: -------------------------------------------------------------------------------- 1 | *vim-python-index.html* 2 | 3 | Python 4 | ****** 5 | 6 | 7 | Features 8 | ======== 9 | 10 | - Python Interpreter / Paths (vim-python-path) 11 | - Python Validation (vim-python-validate) 12 | - Python Code Completion (vim-python-complete) 13 | - Python Search (vim-python-search) 14 | - Django (vim-python-django) 15 | 16 | Suggested Mappings 17 | ================== 18 | 19 | Here are some mappings for the python funtionality provided by eclim. 20 | To make use of these mappings, simply create a ftplugin file for 21 | python and place your mappings there (:help ftplugin-name). 22 | 23 | - The following mapping allows you to simply hit on an 24 | element to perform a search to find its definition or occurrences 25 | depending on the context. 26 | > 27 | nnoremap :PythonSearchContext 28 | 29 | < 30 | 31 | - If you are doing django development you may want to use the 32 | following mapping instead which also supports locating django 33 | templates when executed over a quoted template path in a view, or 34 | locating django views when executed on a quoted view name in a 35 | urls.py file. 36 | > 37 | nnoremap :DjangoContextOpen 38 | 39 | < 40 | 41 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/ftplugin/commonsvalidator.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | 27 | if !exists('g:tlist_commonsvalidator_settings') 28 | let g:tlist_commonsvalidator_settings = { 29 | \ 'lang': 'commonsvalidator', 30 | \ 'parse': 'eclim#taglisttoo#lang#commonsvalidator#Parse', 31 | \ 'tags': {'c': 'constant', 'f': 'form', 'v': 'validator'} 32 | \ } 33 | endif 34 | 35 | " vim:ft=vim:fdm=marker 36 | -------------------------------------------------------------------------------- /eclim/ftplugin/java-xml.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2012 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Functionality exposed to java xml files (web.xml, spring xml files, etc.). 23 | 24 | " Global Variables {{{ 25 | 26 | if !exists("g:EclimJavaSearchMapping") 27 | let g:EclimJavaSearchMapping = 1 28 | endif 29 | 30 | " }}} 31 | 32 | " Mappings {{{ 33 | 34 | if g:EclimJavaSearchMapping 35 | noremap :call eclim#java#search#FindClassDeclaration() 36 | endif 37 | 38 | " }}} 39 | 40 | " vim:ft=vim:fdm=marker 41 | -------------------------------------------------------------------------------- /eclim/ftplugin/dtd.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Autocmds {{{ 23 | 24 | if g:EclimDtdValidate 25 | augroup eclim_css_validate 26 | autocmd! BufWritePost 27 | autocmd BufWritePost call eclim#lang#Validate('dtd', 1) 28 | augroup END 29 | endif 30 | 31 | " }}} 32 | 33 | " Command Declarations {{{ 34 | 35 | if !exists(":Validate") 36 | command -nargs=0 -buffer Validate :call eclim#lang#Validate('dtd', 0) 37 | endif 38 | 39 | " }}} 40 | 41 | " vim:ft=vim:fdm=marker 42 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/gant.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2010 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Parse(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#gant#Parse(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['t', "\\s*target\\s*\\(\\s*(?:name\\s*:)?\\s*['\"]?([^'\",: ]+)", 1], 28 | \ ['f', "\\s*def\\s+(\\w+)\\s*\\(", 1], 29 | \ ['f', "\\s*(?:final|def)?\\s*(\\w+)\\s*=\\s*\\{", 1], 30 | \ ]) 31 | endfunction " }}} 32 | 33 | " vim:ft=vim:fdm=marker 34 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/spring.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Parse(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#spring#Parse(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['b', "]*?(?:name|id)=['\"](.*?)['\"]", 1], 28 | \ ['i', "]*?resource=['\"](.*?)['\"]", 1], 29 | \ ['a', "]*?alias=['\"](.*?)['\"]", 1], 30 | \ ]) 31 | endfunction " }}} 32 | 33 | " vim:ft=vim:fdm=marker 34 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/junit.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Parse(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#junit#Parse(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['t', "]*?\\bname=['\"](.*?)['\"]", 1], 28 | \ ['f', "]*?\\bname=['\"]([^'\"]+?)['\"]\\s+[^>]*?>\\s*', 1], 30 | \ ]) 31 | endfunction " }}} 32 | 33 | " vim:ft=vim:fdm=marker 34 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/commonsvalidator.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Parse(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#commonsvalidator#Parse(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['c', '\s*(.*?)\s*', 1], 28 | \ ['f', "]*?name=['\"](.*?)['\"]", 1], 29 | \ ['v', "]*?name=['\"](.*?)['\"]", 1], 30 | \ ]) 31 | endfunction " }}} 32 | 33 | " vim:ft=vim:fdm=marker 34 | -------------------------------------------------------------------------------- /eclim/ftplugin/mvn_pom.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " load any xml related functionality 23 | runtime! ftplugin/xml.vim 24 | runtime! indent/xml.vim 25 | 26 | " turn off xml validation 27 | augroup eclim_xml 28 | autocmd! BufWritePost 29 | augroup END 30 | 31 | " Autocmds {{{ 32 | if g:EclimMavenPomClasspathUpdate 33 | augroup eclim_mvn 34 | autocmd! BufWritePost 35 | autocmd BufWritePost call eclim#java#maven#UpdateClasspath() 36 | augroup END 37 | endif 38 | " }}} 39 | 40 | " vim:ft=vim:fdm=marker 41 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/types.txt: -------------------------------------------------------------------------------- 1 | *vim-java-types.html* 2 | 3 | Type Creation 4 | ************* 5 | 6 | *:JavaNew* 7 | 8 | 9 | Creating a new Class, Interface, etc. 10 | ===================================== 11 | 12 | :JavaNew is a command that allows you to create new classes, 13 | interfaces, enums, or annotations by specifying which of those you'd 14 | like to create, followed by the fully qualified path of the new type. 15 | 16 | The available types you can create include: 17 | 18 | - class - a new class 19 | - interface - a new interface 20 | - abstract - a new abstract class 21 | - enum - a new enum 22 | - @interface - a new annotation 23 | Here are some examples: 24 | 25 | > 26 | 27 | :JavaNew class org.test.MyNewClass 28 | :JavaNew interface org.test.MyNewInterface 29 | 30 | < 31 | 32 | 33 | If you ommit the package name, the new type will be created in the 34 | same package as the file you are currently editing: 35 | 36 | > 37 | 38 | :JavaNew class MyNewClass 39 | 40 | < 41 | 42 | 43 | Note: This command supports command completion of the available 44 | types (class, interface, etc) as well as completion of existing 45 | package names. 46 | 47 | In the case where the source directory to create the type in is 48 | ambiguous, you will be prompted to choose the source directory from a 49 | list. 50 | 51 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/ftplugin/eclimhelp.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/help.vim 25 | 26 | nnoremap :call eclim#help#Help('', 1) 27 | nnoremap :call eclim#help#Help('', 1) 28 | 29 | if !exists("g:tlist_eclimhelp_settings") 30 | let g:tlist_eclimhelp_settings = { 31 | \ 'lang': 'eclimhelp', 32 | \ 'parse': 'eclim#taglisttoo#lang#eclimhelp#Parse', 33 | \ 'tags': {'s': 'section', 'a': 'anchor'} 34 | \ } 35 | endif 36 | 37 | " vim:ft=vim:fdm=marker 38 | -------------------------------------------------------------------------------- /eclim/syntax/perl.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Extension to default perl syntax to support spell checking in comments and 5 | " plain POD syntax. 6 | " 7 | " License: 8 | " 9 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 10 | " 11 | " This program is free software: you can redistribute it and/or modify 12 | " it under the terms of the GNU General Public License as published by 13 | " the Free Software Foundation, either version 3 of the License, or 14 | " (at your option) any later version. 15 | " 16 | " This program is distributed in the hope that it will be useful, 17 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | " GNU General Public License for more details. 20 | " 21 | " You should have received a copy of the GNU General Public License 22 | " along with this program. If not, see . 23 | " 24 | " }}} 25 | 26 | source $VIMRUNTIME/syntax/perl.vim 27 | 28 | syn match perlComment "#.*" contains=perlTodo,@Spell 29 | 30 | if !exists("perl_include_pod") 31 | if exists("perl_fold") 32 | syn region perlPOD start="^=[a-z]" end="^=cut" fold contains=@Spell 33 | else 34 | syn region perlPOD start="^=[a-z]" end="^=cut" contains=@Spell 35 | endif 36 | endif 37 | 38 | " vim:ft=vim:fdm=marker 39 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/java/ant/util.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Utility functions for working with ant. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " FindBuildFile() {{{ 26 | " Finds the build file relative to the current file (like ant -find). 27 | function! eclim#java#ant#util#FindBuildFile() 28 | let buildFile = eclim#util#Findfile('build.xml', fnamemodify(expand('%:p'), ':h') . ';') 29 | if filereadable(buildFile) 30 | return substitute(fnamemodify(buildFile, ':p'), '\', '/', 'g') 31 | endif 32 | 33 | return '' 34 | endfunction " }}} 35 | 36 | " vim:ft=vim:fdm=marker 37 | -------------------------------------------------------------------------------- /eclim/ftplugin/xsd.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Autocmds {{{ 23 | 24 | if g:EclimXsdValidate 25 | augroup eclim_xsd_validate 26 | autocmd! BufWritePost 27 | autocmd BufWritePost call eclim#lang#Validate('xsd', 1) 28 | augroup END 29 | endif 30 | 31 | " disable plain xml validation. 32 | augroup eclim_xml 33 | autocmd! BufWritePost 34 | augroup END 35 | 36 | " }}} 37 | 38 | " Command Declarations {{{ 39 | 40 | command! -nargs=0 -buffer Validate :call eclim#lang#Validate('xsd', 0) 41 | 42 | " }}} 43 | 44 | " vim:ft=vim:fdm=marker 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # VIM Eclim 2 | 3 | A mirror of the VIM files from [Eclim][1] to support quick and convenient installation via various plugin managers. 4 | 5 | **Version [2.21.0][8]** 6 | 7 | *Note, several features were removed from Eclim in version [2.18.0][6]. Please see the [Eclim release notes][6] and this [issue][7] for details.* 8 | 9 | # Installation 10 | 11 | * [Pathogen][2] 12 | * `git clone https://github.com/dansomething/vim-eclim.git ~/.vim/bundle/vim-eclim` 13 | * [NeoBundle][3] 14 | * `NeoBundle 'dansomething/vim-eclim'` 15 | * [Vundle][4] 16 | * `Plugin 'dansomething/vim-eclim'` 17 | * [Plug][5] 18 | * `Plug 'dansomething/vim-eclim'` 19 | * manual 20 | * copy all of the files into your `~/.vim` directory 21 | 22 | # File Generation 23 | 24 | These files were generated using the following command with paths replaced: 25 | 26 | ./eclim_2.21.0.bin --eclipse=/path/to/Eclipse --vimfiles=/path/to/vim/files --plugins=jdt,wst --yes 27 | 28 | [1]: https://github.com/ervandew/eclim 29 | [2]: https://github.com/tpope/vim-pathogen 30 | [3]: https://github.com/Shougo/neobundle.vim 31 | [4]: https://github.com/gmarik/vundle 32 | [5]: https://github.com/junegunn/vim-plug 33 | [6]: http://eclim.org/changes.html#jan-09-2021 34 | [7]: https://github.com/ervandew/eclim/issues/606#issuecomment-756864300 35 | [8]: http://eclim.org/changes.html#nov-10-2021 36 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/javascript/complete.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/javascript/complete.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Varables {{{ 26 | let s:complete_command = 27 | \ '-command javascript_complete ' . 28 | \ '-p "" -f "" -o -e ' 29 | " }}} 30 | 31 | " CodeComplete(findstart, base) {{{ 32 | " Handles code completion. 33 | function! eclim#javascript#complete#CodeComplete(findstart, base) 34 | return eclim#lang#CodeComplete(s:complete_command, a:findstart, a:base) 35 | endfunction " }}} 36 | 37 | " vim:ft=vim:fdm=marker 38 | -------------------------------------------------------------------------------- /eclim/doc/vim/refactoring.txt: -------------------------------------------------------------------------------- 1 | *vim-refactoring.html* 2 | 3 | Refactoring 4 | *********** 5 | 6 | Described below are some common commands and configuration for eclim's 7 | refactoring support. 8 | 9 | Note: Eclim does not provide refactoring support for all languages, 10 | so be sure to check the available features for the language of your 11 | choice. 12 | 13 | *:RefactorUndo* *:RefactorRedo* *:RefactorUndoPeek* 14 | 15 | 16 | Refactor Undo/Redo 17 | ================== 18 | 19 | In the event that you need to undo a refactoring, eclim provides the 20 | :RefactorUndo command. When executed, the last refactoring will be 21 | reverted. If you are unsure what the last refactoring was, the 22 | :RefactorUndoPeek command will print the name of the top most 23 | refactoring on the undo stack. 24 | 25 | Eclim also provides the :RefactorRedo and :RefactorRedoPeek commands 26 | which provide the redo counterpart to the undo commands. 27 | 28 | 29 | Configuration 30 | ============= 31 | 32 | Vim Settings (|vim-settings|) 33 | 34 | *g:EclimRefactorDiffOrientation* 35 | 36 | - g:EclimRefactorDiffOrientation (Default: 'vertical') - Specifies 37 | the orientation used when previewing a refactoring and performing a 38 | diff split between the current file contents and the changes to be 39 | performed by the refactoring. Possible values include 'vertical' or 40 | 'horizontal'. 41 | 42 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/settings.txt: -------------------------------------------------------------------------------- 1 | *vim-settings.html* 2 | 3 | Settings 4 | ******** 5 | 6 | Certain aspects of eclim can be controlled by modifying one or more 7 | settings. There are two types of settings available: 8 | 9 | 10 | Eclim daemon settings 11 | ===================== 12 | 13 | These are settings that reside in your Eclipse workspace or project 14 | and are used to configure the behavior of the eclim daemon, 15 | independent of which client you use (vim, emacs, etc). 16 | 17 | These settings can be viewed and modified using one of the following 18 | commands: 19 | 20 | - :WorkspaceSettings (|vim-core-eclim#:WorkspaceSettings|): Edit 21 | non-project dependent settings, or define defaults for settings not 22 | overridden at the project level. 23 | - |:ProjectSettings|: Define the settings for the current project. 24 | 25 | Vim client settings 26 | =================== 27 | 28 | These are the settings you use to control how vim (the primary eclimd 29 | client) behaves. You can edit these settings one of two ways: 30 | 31 | - :VimSettings (|vim-core-eclim#:VimSettings|): Allows you to view 32 | and edit all of eclim's vim client settings. Settings edited here 33 | will be stored at $HOME/.eclim/.eclim_settings. 34 | - Alternately, you can add the equivalent g:EclimXXX setting to your 35 | vimrc or an ftplugin file, and that setting will take precedence 36 | over any value set using :VimSettings. 37 | 38 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/syntax/java.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Extension to default java syntax to fix issues or make improvements. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | source $VIMRUNTIME/syntax/java.vim 26 | 27 | " syntax now found in the latest version of java.vim 28 | if hlID('javaFold') == 0 29 | syn region javaFold start="{" end="}" transparent fold 30 | syn match javaAnnotation "@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>" 31 | endif 32 | 33 | " allow folding of java doc comments. 34 | syn region javaDocComment start="/\*\*" end="\*/" keepend contains=javaCommentTitle,@javaHtml,javaDocTags,javaDocSeeTag,javaTodo,@Spell fold 35 | 36 | " vim:ft=vim:fdm=marker 37 | -------------------------------------------------------------------------------- /eclim/ftplugin/hibernate.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | runtime! ftplugin/xml.vim 25 | runtime! indent/xml.vim 26 | runtime eclim/ftplugin/java-xml.vim 27 | 28 | if !exists("g:tlist_hibernate_settings") 29 | let g:tlist_hibernate_settings = { 30 | \ 'lang': 'hibernate', 31 | \ 'parse': 'eclim#taglisttoo#lang#hibernate#Parse', 32 | \ 'tags': { 33 | \ 't': 'typedef', 34 | \ 'f': 'filter-def', 35 | \ 'i': 'import', 36 | \ 'q': 'query', 37 | \ 's': 'sql-query', 38 | \ 'c': 'class', 39 | \ 'j': 'joined-subclass' 40 | \ } 41 | \ } 42 | endif 43 | 44 | " vim:ft=vim:fdm=marker 45 | -------------------------------------------------------------------------------- /eclim/ftplugin/log4j.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | runtime! ftplugin/xml.vim 23 | runtime! indent/xml.vim 24 | runtime eclim/ftplugin/java-xml.vim 25 | 26 | " Autocmds {{{ 27 | 28 | if g:EclimLog4jValidate 29 | augroup eclim_log4j_validate 30 | autocmd! BufWritePost 31 | autocmd BufWritePost call eclim#lang#Validate('log4j', 1) 32 | augroup END 33 | endif 34 | 35 | " disable plain xml validation. 36 | augroup eclim_xml 37 | autocmd! BufWritePost 38 | augroup END 39 | 40 | " }}} 41 | 42 | " Command Declarations {{{ 43 | 44 | command! -nargs=0 -buffer Validate :call eclim#lang#Validate('log4j', 0) 45 | 46 | " }}} 47 | 48 | " vim:ft=vim:fdm=marker 49 | -------------------------------------------------------------------------------- /eclim/doc/development/architecture.txt: -------------------------------------------------------------------------------- 1 | *development-architecture.html* 2 | 3 | Architecture 4 | ************ 5 | 6 | The eclim architecture is pretty straight forward. Commands issued by 7 | a user in vim are relayed via nailgun 8 | (http://www.martiansoftware.com/nailgun/) to the running eclim daemon 9 | and the proper command implementation is then located and executed. 10 | 11 | Here is a diagram showing the sequence in a bit more detail: 12 | 13 | [diagram] 14 | 15 | The commands which are executed on the eclimd side are also fairly 16 | simple. They accept an object containing the command line parameters 17 | passed into the eclim invocation and then return an object (String, 18 | Collection, etc) which is converted to a json response. Below is a 19 | simple class diagram showing the hierarchy of a couple typical 20 | commands. 21 | 22 | [diagram] 23 | 24 | Another important aspect of eclim's architecture is support for 25 | plugins. Plugins for eclim are bundled as eclipse plugins with their 26 | auto start attribute set to false. When the eclim daemon starts it 27 | will locate and load any eclipse plugin with an 'org.eclim.' prefix. 28 | 29 | When a plugin is loaded, eclim will locate the plugin's required 30 | resources provider and invoke its initialize method which will then 31 | inject its resources (messages, command options, etc) into eclim and 32 | register any new commands. 33 | 34 | Here is graphical representation of this process: 35 | 36 | [diagram] 37 | 38 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/ftplugin/ant.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Options {{{ 23 | 24 | exec 'setlocal ' . g:EclimCompletionMethod . '=eclim#java#ant#complete#CodeComplete' 25 | 26 | " }}} 27 | 28 | " Autocmds {{{ 29 | 30 | if g:EclimAntValidate 31 | augroup eclim_xml 32 | autocmd! BufWritePost 33 | autocmd BufWritePost call eclim#lang#Validate('ant', 1) 34 | augroup END 35 | endif 36 | 37 | " }}} 38 | 39 | " Command Declarations {{{ 40 | 41 | if !exists(":AntDoc") 42 | command -buffer -nargs=? AntDoc :call eclim#java#ant#doc#FindDoc('') 43 | endif 44 | 45 | command! -nargs=0 -buffer Validate :call eclim#lang#Validate('ant', 0) 46 | 47 | " }}} 48 | 49 | " vim:ft=vim:fdm=marker 50 | -------------------------------------------------------------------------------- /eclim/ftplugin/css.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Options {{{ 23 | 24 | exec 'setlocal ' . g:EclimCompletionMethod . '=eclim#css#complete#CodeComplete' 25 | 26 | " }}} 27 | 28 | " Autocmds {{{ 29 | 30 | if g:EclimCssValidate 31 | augroup eclim_css_validate 32 | autocmd! BufWritePost 33 | autocmd BufWritePost 34 | \ call eclim#lang#Validate('css', 1, 'eclim#css#validate#Filter') 35 | augroup END 36 | endif 37 | 38 | " }}} 39 | 40 | " Command Declarations {{{ 41 | 42 | if !exists(":Validate") 43 | command -nargs=0 -buffer Validate 44 | \ :call eclim#lang#Validate('css', 0, 'eclim#css#validate#Filter') 45 | endif 46 | 47 | " }}} 48 | 49 | " vim:ft=vim:fdm=marker 50 | -------------------------------------------------------------------------------- /eclim/ftplugin/ivy.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " load any xml related functionality 23 | runtime! ftplugin/xml.vim 24 | runtime! indent/xml.vim 25 | 26 | " turn off xml validation 27 | augroup eclim_xml 28 | autocmd! BufWritePost 29 | augroup END 30 | 31 | " Autocmds {{{ 32 | if g:EclimIvyClasspathUpdate 33 | augroup eclim_ivy 34 | autocmd! BufWritePost 35 | autocmd BufWritePost call eclim#java#maven#UpdateClasspath() 36 | augroup END 37 | endif 38 | " }}} 39 | 40 | " Command Declarations {{{ 41 | if !exists(":IvyRepo") 42 | command -nargs=1 -complete=dir -buffer IvyRepo 43 | \ :call eclim#java#ant#ivy#SetRepo('') 44 | endif 45 | " }}} 46 | 47 | " vim:ft=vim:fdm=marker 48 | -------------------------------------------------------------------------------- /eclim/ftplugin/xml.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2020 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Autocmds {{{ 23 | 24 | if g:EclimXmlValidate 25 | augroup eclim_xml 26 | autocmd! BufWritePost 27 | autocmd BufWritePost call eclim#xml#validate#Validate(1, '!') 28 | augroup END 29 | endif 30 | 31 | " }}} 32 | 33 | " Command Declarations {{{ 34 | 35 | if !exists(":Validate") 36 | command -nargs=0 -bang -buffer Validate 37 | \ :call eclim#xml#validate#Validate(0, '') 38 | 39 | command -nargs=? -buffer DtdDefinition 40 | \ :call eclim#xml#definition#DtdDefinition('') 41 | command -nargs=? -buffer XsdDefinition 42 | \ :call eclim#xml#definition#XsdDefinition('') 43 | endif 44 | 45 | " }}} 46 | 47 | " vim:ft=vim:fdm=marker 48 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/forrest.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " ParseDocument(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#forrest#ParseDocument(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['s', "]*?id=['\"](.*?)['\"]", 1], 28 | \ ]) 29 | endfunction " }}} 30 | 31 | " ParseStatus(file, settings) {{{ 32 | function! eclim#taglisttoo#lang#forrest#ParseStatus(file, settings) 33 | return taglisttoo#util#Parse(a:file, a:settings, [ 34 | \ ['t', "]*?priority=['\"](.*?)['\"]", 1], 35 | \ ['r', "]*?version=['\"](.*?)['\"]", 1], 36 | \ ]) 37 | endfunction " }}} 38 | 39 | " vim:ft=vim:fdm=marker 40 | -------------------------------------------------------------------------------- /eclim/ftplugin/javascript.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/javascript/index.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Options {{{ 26 | 27 | " tern has better auto completion than eclipse 28 | if &omnifunc != 'tern#Complete' 29 | exec 'setlocal ' . g:EclimCompletionMethod . '=eclim#javascript#complete#CodeComplete' 30 | endif 31 | 32 | " }}} 33 | 34 | " Autocmds {{{ 35 | 36 | augroup eclim_javascript 37 | autocmd! BufWritePost 38 | autocmd BufWritePost call eclim#javascript#util#UpdateSrcFile(0) 39 | augroup END 40 | 41 | " }}} 42 | 43 | " Command Declarations {{{ 44 | 45 | command! -nargs=0 -buffer Validate :call eclim#javascript#util#UpdateSrcFile(1) 46 | 47 | " }}} 48 | 49 | " vim:ft=vim:fdm=marker 50 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/hibernate.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Parse(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#hibernate#Parse(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['c', "]*?name=['\"](.*?)['\"]", 1], 28 | \ ['j', "]*?name=['\"](.*?)['\"]", 1], 29 | \ ['t', "]*?name=['\"](.*?)['\"]", 1], 30 | \ ['f', "]*?name=['\"](.*?)['\"]", 1], 31 | \ ['i', "]*?class=['\"](.*?)['\"]", 1], 32 | \ ['q', "]*?name=['\"](.*?)['\"]", 1], 33 | \ ['s', "]*?name=['\"](.*?)['\"]", 1], 34 | \ ]) 35 | endfunction " }}} 36 | 37 | " vim:ft=vim:fdm=marker 38 | -------------------------------------------------------------------------------- /eclim/syntax/xml.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Default xml.vim only defines the xmlRegion if xml folding is enabled, but 5 | " xmlRegion is needed to allow spell check highlighting of xml text. 6 | " 7 | " License: 8 | " 9 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 10 | " 11 | " This program is free software: you can redistribute it and/or modify 12 | " it under the terms of the GNU General Public License as published by 13 | " the Free Software Foundation, either version 3 of the License, or 14 | " (at your option) any later version. 15 | " 16 | " This program is distributed in the hope that it will be useful, 17 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | " GNU General Public License for more details. 20 | " 21 | " You should have received a copy of the GNU General Public License 22 | " along with this program. If not, see . 23 | " 24 | " }}} 25 | 26 | source $VIMRUNTIME/syntax/xml.vim 27 | 28 | " the c# syntax file loads syntax/xml.vim, but the below changes may break 29 | " syntax highlighting in c# 30 | if &ft == 'cs' 31 | finish 32 | endif 33 | 34 | if !exists('g:xml_syntax_folding') 35 | " taken from syntax/xml.vim, but removed unecessary portions. 36 | syn region xmlRegion 37 | \ start=+<\z([^ /!?<>"']\+\)+ 38 | \ skip=++ 39 | \ end=++ 40 | \ contains=xmlTag,xmlEndTag,xmlCdata,xmlRegion,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook,@Spell 41 | endif 42 | 43 | " vim:ft=vim:fdm=marker 44 | -------------------------------------------------------------------------------- /eclim/compiler/eclim_javadoc.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2017 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | if exists("current_compiler") 23 | finish 24 | endif 25 | let current_compiler = "eclim_javadoc" 26 | 27 | let instance = eclim#client#nailgun#ChooseEclimdInstance() 28 | let [retcode, result] = eclim#client#nailgun#GetEclimCommand(instance.home) 29 | if retcode != 0 30 | call eclim#util#EchoError(result) 31 | finish 32 | endif 33 | 34 | let command = result 35 | let command .= ' --nailgun-port ' . instance.port 36 | let command .= ' -command javadoc $*' 37 | let command = substitute(command, '"', '', 'g') 38 | exec 'CompilerSet makeprg=' . escape(command, ' "') 39 | 40 | exec 'CompilerSet errorformat=' . 41 | \ '\%A%.%#[javadoc]\ %f:%l:\ %m,' . 42 | \ '\%-Z%.%#[javadoc]\ %p^,' . 43 | \ '\%-G%.%#[javadoc]%.%#,' . 44 | \ '\%-G%.%#' 45 | 46 | " vim:ft=vim:fdm=marker 47 | -------------------------------------------------------------------------------- /eclim/syntax/mysql.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Extension to default mysql syntax to add additional syntax support. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | source $VIMRUNTIME/syntax/mysql.vim 26 | 27 | syn keyword mysqlKeyword engine 28 | syn keyword mysqlKeyword if elseif else loop leave while 29 | syn keyword mysqlKeyword before close cursor each fetch open set trigger 30 | syn keyword mysqlKeyword begin call declare return 31 | syn keyword mysqlKeyword delimiter 32 | syn keyword mysqlKeyword truncate 33 | syn keyword mysqlKeyword duplicate union 34 | syn keyword mysqlKeyword interval 35 | 36 | syn keyword sqlTodo TODO FIXME NOTE 37 | 38 | syn match mysqlEscaped "`.\{-}`" 39 | 40 | syn region mysqlVariable start="\(NEW\|OLD\)\." end="\W" 41 | 42 | hi def link sqlComment Comment 43 | hi def link sqlTodo Todo 44 | 45 | " vim:ft=vim:fdm=marker 46 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/maven.txt: -------------------------------------------------------------------------------- 1 | *vim-java-maven.html* 2 | 3 | Maven 4 | ***** 5 | 6 | *:Maven* *:Mvn* 7 | 8 | 9 | Running 10 | ======= 11 | 12 | Much like the provided ant (|vim-java-ant|) execution functionality, 13 | eclim also provides commands for running maven 1.x or 2.x. 14 | 15 | Eclim provides the following commands: 16 | 17 | > 18 | 19 | :Maven [ ...] 20 | :Mvn [ ...] 21 | 22 | < 23 | 24 | 25 | which perform the following steps: 26 | 27 | - Save any previous 'makeprg' and 'errorformat' option settings so 28 | that you can define your own settings for the :make command. 29 | - Set 'makeprg' to execute maven or mvn with the --find option so 30 | that it will search for your pom file in the current directory or in 31 | a parent directory. 32 | - Set 'errorformat' to recognize the following errors: 33 | - javac errors. 34 | - javadoc errors. 35 | - junit errors / failures. 36 | - Execute :make. 37 | - Restore your previous 'makeprg' and 'errorformat' option settings. 38 | Additionally, if g:EclimMakeLCD (|vim-core-eclim#g:EclimMakeLCD|) is 39 | enabled (which it is by default), then the execution of maven will be 40 | performed from the current buffer's project root directory, ensuring 41 | that mavens's build file discovery method is performed from the 42 | buffer's working directory and not your own. 43 | 44 | Note that :Mvn MUST have this enabled since maven 2.x no longer has 45 | support for the --find option. 46 | 47 | Note: Both :Maven and :Mvn also supports use of '!' (:Maven!) just 48 | like :make does, which tells Vim not to jump to the first error if 49 | one exists. 50 | 51 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/python/validate.txt: -------------------------------------------------------------------------------- 1 | *vim-python-validate.html* 2 | 3 | Python Validation 4 | ***************** 5 | 6 | When editing a python file eclim will default to validating the file 7 | when it is written. Any errors will be added to the current window's 8 | location list (:help location-list) and their corresponding line 9 | number noted via Vim's sign functionality. 10 | 11 | If you don't want python files validated when saving them, you can set 12 | the g:EclimPythonValidate variable described in the configuration 13 | section below. 14 | 15 | *:Validate_python* 16 | 17 | Regardless of whether you have validation enabled upon saving or not, 18 | the command :Validate is available to manual validate the file. 19 | 20 | 21 | Configuration 22 | ============= 23 | 24 | Vim Settings (|vim-settings|) 25 | 26 | *g:EclimPythonValidate* 27 | 28 | - g:EclimPythonValidate (Default 1) - If set to 0, disables python 29 | validation when saving the file. 30 | Note: When enabled, syntastic 31 | (https://github.com/scrooloose/syntastic) is disabled so that 32 | eclim and syntastic don't step on each other. If you'd like to use 33 | syntastic over eclim for validation, then simply disable eclim's 34 | validation.If you'd like to disable eclim's source code validation 35 | for all languages, eclim provides a global variable for that as 36 | well:> 37 | 38 | let g:EclimFileTypeValidate = 0 39 | 40 | < 41 | 42 | 43 | - g:EclimValidateSortResults (Default: 'occurrence') - If set to 44 | 'severity', the validation results will be sorted by severity 45 | (errors > warnings > info > etc.) 46 | 47 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/java/index.txt: -------------------------------------------------------------------------------- 1 | *vim-java-index.html* 2 | 3 | Java 4 | **** 5 | 6 | 7 | Features 8 | ======== 9 | 10 | - Eclipse Classpath Editing (vim-java-classpath) 11 | - Java Validation / Correction (vim-java-validate) 12 | - Java Code Completion (vim-java-complete) 13 | - Java Search (vim-java-search) 14 | - Java / Jps (vim-java-java) 15 | - Javadoc Support (vim-java-javadoc) 16 | - Java Source Code Formatting (vim-java-format) 17 | - Java Refactoring (vim-java-refactor) 18 | - Java Code Inspection (vim-java-inspection) 19 | - Automated Imports (vim-java-import) 20 | - Type Creation (vim-java-types) 21 | - Method Generation (vim-java-methods) 22 | - Unit Tests (vim-java-unittests) 23 | - Logging (log4j, etc) (vim-java-logging) 24 | - Ant (vim-java-ant) 25 | - Maven (vim-java-maven) 26 | - WEB-INF/web.xml (vim-java-webxml) 27 | 28 | Suggested Mappings 29 | ================== 30 | 31 | Here are some mappings for the java funtionality provided by eclim. 32 | To make use of these mappings, simply create a ftplugin file for java 33 | and place your mappings there (:help ftplugin-name). 34 | 35 | - Import the class under the cursor with i (:h mapleader): 36 | > 37 | nnoremap i :JavaImport 38 | 39 | < 40 | 41 | - Search for the javadocs of the element under the cursor with 42 | d. 43 | > 44 | nnoremap d :JavaDocSearch -x declarations 45 | 46 | < 47 | 48 | - Perform a context sensitive search of the element under the cursor 49 | with . 50 | > 51 | nnoremap :JavaSearchContext 52 | 53 | < 54 | 55 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/syntax/log4j.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax for log4j.xml files. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | runtime! syntax/xml.vim 26 | 27 | syn cluster xmlTagHook add=log4jElement 28 | 29 | syn keyword log4jElement display renderer appender category logger root categoryFactory 30 | syn keyword log4jElement display errorHandler param layout filter 31 | syn keyword log4jElement display priority level 32 | 33 | syn match log4jElement /appender-ref/ 34 | syn match log4jElement /logger-ref/ 35 | syn match log4jElement /root-ref/ 36 | 37 | syn match log4jElement /log4j:configuration/ 38 | syn match log4jElement /log4j:event/ 39 | syn match log4jElement /log4j:eventSet/ 40 | syn match log4jElement /log4j:message/ 41 | syn match log4jElement /log4j:NDC/ 42 | syn match log4jElement /log4j:throwable/ 43 | syn match log4jElement /log4j:locationInfo/ 44 | 45 | hi def link log4jElement Statement 46 | 47 | let b:current_syntax = "ant" 48 | 49 | " vim:ft=vim:fdm=marker 50 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/css/validate.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/css/validate.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | function! eclim#css#validate#Filter(errors) " {{{ 26 | let results = [] 27 | let ignore_next_parse_error = 0 28 | for error in a:errors 29 | " ignore errors related to browser targeted properties 30 | if error.text =~ '\(^\|\s\)-\(moz\|webkit\|khtml\|o\)-\w\+\>' 31 | continue 32 | endif 33 | 34 | " ignore errors on IE filter property line 35 | if getline(error.lnum) =~ '^\s*filter:\s*progid' 36 | " next parse error will be because of this filter 37 | let ignore_next_parse_error = 1 38 | continue 39 | endif 40 | if error.text == 'Parse Error' && ignore_next_parse_error 41 | let ignore_next_parse_error = 0 42 | continue 43 | endif 44 | 45 | call add(results, error) 46 | endfor 47 | 48 | return results 49 | endfunction " }}} 50 | 51 | " vim:ft=vim:fdm=marker 52 | -------------------------------------------------------------------------------- /eclim/syntax/sql.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Replacement of vim's sql.vim which ensures that ALL db specific syntax 5 | " files are sourced. 6 | " 7 | " License: 8 | " 9 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 10 | " 11 | " This program is free software: you can redistribute it and/or modify 12 | " it under the terms of the GNU General Public License as published by 13 | " the Free Software Foundation, either version 3 of the License, or 14 | " (at your option) any later version. 15 | " 16 | " This program is distributed in the hope that it will be useful, 17 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | " GNU General Public License for more details. 20 | " 21 | " You should have received a copy of the GNU General Public License 22 | " along with this program. If not, see . 23 | " 24 | " }}} 25 | 26 | " Vim syntax file loader 27 | if exists("b:eclim_sql_current_syntax") 28 | finish 29 | endif 30 | let b:eclim_sql_current_syntax = 1 31 | 32 | " Default to the standard Vim distribution file 33 | let filename = 'sqloracle' 34 | 35 | " Check for overrides. Buffer variables have the highest priority. 36 | if exists("b:sql_type_override") 37 | " Check the runtimepath to see if the file exists 38 | if globpath(&runtimepath, 'syntax/' . b:sql_type_override . '.vim') != '' 39 | let filename = b:sql_type_override 40 | endif 41 | elseif exists("g:sql_type_default") 42 | if globpath(&runtimepath, 'syntax/' . g:sql_type_default . '.vim') != '' 43 | let filename = g:sql_type_default 44 | endif 45 | endif 46 | 47 | " Source the appropriate files 48 | exec 'runtime! syntax/' . filename . '.vim' 49 | 50 | " vim:ft=vim:fdm=marker 51 | -------------------------------------------------------------------------------- /eclim/syntax/hg.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Syntax file for hg commit messages. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | if exists("b:current_syntax") 26 | finish 27 | endif 28 | 29 | if has("spell") 30 | syn spell toplevel 31 | endif 32 | syn match hgComment '^HG:.*' contains=@NoSpell 33 | syn match hgModified '^HG: changed .*$' contained containedin=hgComment contains=@NoSpell 34 | syn match hgProperty '^HG: \(user:\|branch\|added\|changed\|removed\)'hs=s+3 contained containedin=hgComment nextgroup=hgPropertyValue contains=@NoSpell 35 | syn match hgPropertyValue '.*' contained contains=@NoSpell 36 | syn match hgAction '^HG: \(added\|changed\|removed\)'hs=s+3 contained containedin=hgComment contains=@NoSpell nextgroup=hgFile 37 | syn match hgFile '.*' contained contains=@NoSpell 38 | 39 | hi link hgComment Comment 40 | hi link hgModified Special 41 | hi link hgProperty Special 42 | hi link hgPropertyValue Special 43 | hi link hgAction Special 44 | hi link hgFile Constant 45 | 46 | let b:current_syntax = "hg" 47 | 48 | " vim:ft=vim:fdm=marker 49 | -------------------------------------------------------------------------------- /eclim/ftplugin/html.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2015 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " some other filetypes (like markdown) source all html ftplugins, so don't 23 | " setup eclim features for those. 24 | if expand('%:e') !~? 'x\?html\?' 25 | finish 26 | endif 27 | 28 | " Options {{{ 29 | 30 | exec 'setlocal ' . g:EclimCompletionMethod . '=eclim#html#complete#CodeComplete' 31 | 32 | call eclim#lang#DisableSyntasticIfValidationIsEnabled('html') 33 | 34 | " }}} 35 | 36 | " Autocmds {{{ 37 | 38 | if g:EclimHtmlValidate 39 | augroup eclim_html_validate 40 | autocmd! BufWritePost 41 | autocmd BufWritePost call eclim#html#validate#Validate(1) 42 | augroup END 43 | endif 44 | 45 | " }}} 46 | 47 | " Command Declarations {{{ 48 | 49 | if !exists(":Validate") 50 | command -nargs=0 -buffer Validate 51 | \ :call eclim#lang#Validate('html', 0) 52 | endif 53 | 54 | if !exists(":BrowserOpen") 55 | command -nargs=? -complete=file -buffer BrowserOpen 56 | \ :call eclim#html#util#OpenInBrowser() 57 | endif 58 | 59 | " }}} 60 | 61 | " vim:ft=vim:fdm=marker 62 | -------------------------------------------------------------------------------- /eclim/compiler/eclim_mvn.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Compiler for maven 2.x. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2018 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | if exists("current_compiler") 26 | finish 27 | endif 28 | let current_compiler = "eclim_mvn" 29 | 30 | if !exists('g:EclimMvnCompilerAdditionalErrorFormat') 31 | let g:EclimMvnCompilerAdditionalErrorFormat = '' 32 | endif 33 | 34 | CompilerSet makeprg=mvn\ $* 35 | 36 | " Lines 1: javac 37 | " Lines 2 - 7: javadoc 38 | " Lines 8 - 9: test failures 39 | " Lines 10 - 12: test failures where test emits output 40 | exec 'CompilerSet errorformat=' . 41 | \ '\[ERROR]\ %f:[%l\\,%c]\ %m,' . 42 | \ '\%W[WARNING]\ %f:%l:\ %m,' . 43 | \ '\%C[WARNING]%.%#,' . 44 | \ '\%Z[WARNING]\ %p^,' . 45 | \ '\%E[ERROR]\ %.%#\ -\ %f:%l:\ %m,' . 46 | \ '\%C[ERROR]%.%#,' . 47 | \ '\%Z[ERROR]\ %p^,' . 48 | \ '\%ARunning\ %f,' . 49 | \ '\%+ZTests\ run%.%#FAILURE!%.%#,' . 50 | \ '\%ARunning\ %f,' . 51 | \ '\%-C%.%#,' . 52 | \ '\%+ZTests\ run%.%#FAILURE!%.%#,' . 53 | \ g:EclimMvnCompilerAdditionalErrorFormat . 54 | \ '\%-G%.%#' 55 | 56 | " vim:ft=vim:fdm=marker 57 | -------------------------------------------------------------------------------- /eclim/syntax/html.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Extension to default html syntax to support spell checking in plain html 5 | " text, and set syntax group for doctype to fix indenting issue w/ 6 | " IndentAnything. 7 | " 8 | " License: 9 | " 10 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 11 | " 12 | " This program is free software: you can redistribute it and/or modify 13 | " it under the terms of the GNU General Public License as published by 14 | " the Free Software Foundation, either version 3 of the License, or 15 | " (at your option) any later version. 16 | " 17 | " This program is distributed in the hope that it will be useful, 18 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | " GNU General Public License for more details. 21 | " 22 | " You should have received a copy of the GNU General Public License 23 | " along with this program. If not, see . 24 | " 25 | " }}} 26 | 27 | source $VIMRUNTIME/syntax/html.vim 28 | 29 | syn region htmlBody start="" end=""me=e-7 end=""me=e-7 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,htmlTitle,javaScript,cssStyle,@htmlPreproc,@Spell 30 | syn region htmlDoctype start=++ 31 | 32 | syn region htmlTemplate start=+]*type=['"]text/template['"][^>]*>+ keepend end=++me=s-1 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlComment,htmlLink,javaScript 33 | syn clear javaScript 34 | syn region javaScript start=++ keepend end=++me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc 35 | 36 | hi link htmlDoctype Comment 37 | hi link javaScript Normal 38 | 39 | " vim:ft=vim:fdm=marker 40 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/webxml.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2010 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " ParseWebXml(file, settings) {{{ 25 | function! eclim#taglisttoo#lang#webxml#ParseWebXml(file, settings) 26 | return taglisttoo#util#Parse(a:file, a:settings, [ 27 | \ ['p', '\s*\s*(.*?)\s*', 1], 28 | \ ['f', '\s*\s*(.*?)\s*', 1], 29 | \ ['i', '\s*\s*(.*?)\s*', 1], 30 | \ ['l', '\s*\s*(.*?)\s*', 1], 31 | \ ['s', '\s*\s*(.*?)\s*', 1], 32 | \ ['v', '\s*\s*(.*?)\s*', 1], 33 | \ ]) 34 | endfunction " }}} 35 | 36 | " ParseTld(file, settings) {{{ 37 | function! eclim#taglisttoo#lang#webxml#ParseTld(file, settings) 38 | return taglisttoo#util#Parse(a:file, a:settings, [ 39 | \ ['t', '\s*\s*(.*?)\s*', 1], 40 | \ ]) 41 | endfunction " }}} 42 | 43 | " vim:ft=vim:fdm=marker 44 | -------------------------------------------------------------------------------- /eclim/ftplugin/webxml.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | runtime! ftplugin/xml.vim 23 | runtime! indent/xml.vim 24 | runtime eclim/ftplugin/java-xml.vim 25 | 26 | if !exists("g:tlist_webxml_settings") 27 | let g:tlist_webxml_settings = { 28 | \ 'lang': 'webxml', 29 | \ 'parse': 'eclim#taglisttoo#lang#webxml#ParseWebXml', 30 | \ 'tags': { 31 | \ 'p': 'context-param', 32 | \ 'f': 'filter', 33 | \ 'i': 'filter-mapping', 34 | \ 'l': 'listener', 35 | \ 's': 'servlet', 36 | \ 'v': 'servlet-mapping' 37 | \ } 38 | \ } 39 | endif 40 | 41 | " Autocmds {{{ 42 | 43 | if g:EclimWebXmlValidate 44 | augroup eclim_webxml_validate 45 | autocmd! BufWritePost 46 | autocmd BufWritePost call eclim#lang#Validate('webxml', 1) 47 | augroup END 48 | endif 49 | 50 | " disable plain xml validation. 51 | augroup eclim_xml 52 | autocmd! BufWritePost 53 | augroup END 54 | 55 | " }}} 56 | 57 | " Command Declarations {{{ 58 | 59 | command! -nargs=0 -buffer Validate :call eclim#lang#Validate('webxml', 0) 60 | 61 | " }}} 62 | 63 | " vim:ft=vim:fdm=marker 64 | -------------------------------------------------------------------------------- /eclim/doc/gettinghelp.txt: -------------------------------------------------------------------------------- 1 | *gettinghelp.html* 2 | 3 | Getting Help 4 | ************ 5 | 6 | 7 | Mailing Lists 8 | ============= 9 | 10 | If at any time you have any questions or feedback, feel free to post 11 | to one of the eclim mailing lists: 12 | 13 | - eclim-user (http://groups.google.com/group/eclim-user): For all 14 | questions regarding installation, usage, troubleshooting, etc. 15 | - eclim-dev (http://groups.google.com/group/eclim-dev): For all 16 | eclim development related discussions. 17 | 18 | IRC (#eclim on freenode.net) 19 | ============================ 20 | 21 | If you would like to get help or ask questions on IRC, then feel free 22 | to join #eclim on freenode.net. Please note that I (Eric Van 23 | Dewoestine, ervandew on irc) try to stay in the channel as much as 24 | possible, but I might not be available to answer questions 25 | immediately. It's also worth noting that I live in California, so if 26 | you are in Europe, Asia, or some other timezone whose normal waking 27 | hours don't overlap well with mine, then you may be better off getting 28 | help using one of the mailing lists above. 29 | 30 | 31 | Reporting Bugs 32 | ============== 33 | 34 | If you've found a bug please report the issue to either the eclim-dev 35 | (http://groups.google.com/group/eclim-dev) mailing list or create a 36 | new issue on eclim's github issue tracker 37 | (http://github.com/ervandew/eclim/issues). 38 | 39 | When reporting a bug, please include the following information: 40 | 41 | - What OS are you on? 42 | - Linux users: please include the distro and version. 43 | - What version of eclim, vim, and eclipse are you using? 44 | - Linux users: please indicate whether you installed eclipse via 45 | your distro's package manager or not, and if not, please indicate 46 | what distribution of eclipse you are using ("Eclipse Classic", 47 | "Eclipse IDE for Java Developers", some other eclipse bundle). 48 | 49 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/syntax/css.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Extension to default css syntax to fix issues. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | source $VIMRUNTIME/syntax/css.vim 26 | 27 | " fix issue where vim's css syntax file has issues if a curly immediately 28 | " follows a psudo class 29 | " Ex. 30 | " a:hover{ 31 | " color: #fff; 32 | " } 33 | syn match cssPseudoClass ":[^ {]*" contains=cssPseudoClassId,cssUnicodeEscape 34 | 35 | " some css3 properties 36 | syn match cssBoxProp contained "\" 37 | syn match cssBoxProp contained "\" 38 | syn match cssBoxProp contained "\" 39 | 40 | " css3 pseudo classes 41 | syn match cssPseudoClassId contained "\<\(root\|empty\)\>" 42 | syn match cssPseudoClassId contained "\<\(last\|only\)-child\>" 43 | syn match cssPseudoClassId contained "\<\(first\|last\|only\)-of-type\>" 44 | syn match cssPseudoClassId contained "\(\s*\(odd\|even\|[-+]\?\s*\d\+\(\s*n\(\s*[-+]\?\s*\d\+\)\?\)\?\)\s*)" 45 | syn region cssPseudoClassId contained start="\(" end=")" contains=cssPseudoClassId 46 | 47 | " vim:ft=vim:fdm=marker 48 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/html/complete.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/html/complete.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Varables {{{ 26 | let s:complete_command = 27 | \ '-command html_complete -p "" -f "" -o -e ' 28 | " }}} 29 | 30 | " CodeComplete(findstart, base) {{{ 31 | " Handles html code completion. 32 | function! eclim#html#complete#CodeComplete(findstart, base) 33 | "if eclim#html#util#InJavascriptBlock() 34 | " return eclim#javascript#complete#CodeComplete(a:findstart, a:base) 35 | "endif 36 | 37 | if eclim#html#util#InCssBlock() 38 | return eclim#css#complete#CodeComplete(a:findstart, a:base) 39 | endif 40 | 41 | if a:findstart 42 | call eclim#lang#SilentUpdate(1) 43 | 44 | " locate the start of the word 45 | let line = getline('.') 46 | 47 | let start = col('.') - 1 48 | 49 | while start > 0 && line[start - 1] =~ '[[:alnum:]_-]' 50 | let start -= 1 51 | endwhile 52 | 53 | return start 54 | else 55 | return eclim#lang#CodeComplete(s:complete_command, a:findstart, a:base) 56 | endif 57 | endfunction " }}} 58 | 59 | " vim:ft=vim:fdm=marker 60 | -------------------------------------------------------------------------------- /eclim/compiler/eclim_make.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Compiler for make. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | if exists("current_compiler") 26 | finish 27 | endif 28 | let current_compiler = "eclim_make" 29 | 30 | if !exists('g:EclimMakeCompilerAdditionalErrorFormat') 31 | let g:EclimMakeCompilerAdditionalErrorFormat = '' 32 | endif 33 | 34 | CompilerSet makeprg=make 35 | 36 | " With the exception of the last two lines, this is a straight copy from the 37 | " vim default. 38 | exec 'CompilerSet errorformat=' . 39 | \ '%*[^\"]\"%f\"%*\\D%l:\ %m,' . 40 | \ '\"%f\"%*\\D%l:\ %m,'. 41 | \ '%-G%f:%l:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,' . 42 | \ '%-G%f:%l:\ for\ each\ function\ it\ appears\ in.),' . 43 | \ '%f:%l:%c:%m,' . 44 | \ '%f(%l):%m,' . 45 | \ '%f:%l:%m,' . 46 | \ '\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,' . 47 | \ "%D%*\\\\a[%*\\\\d]:\\ Entering\\ directory\\ `%f'," . 48 | \ "%X%*\\\\a[%*\\\\d]:\\ Leaving\\ directory\\ `%f'," . 49 | \ "%D%*\\\\a:\\ Entering\\ directory\\ `%f'," . 50 | \ "%X%*\\\\a:\\ Leaving\\ directory\\ `%f'," . 51 | \ '%DMaking\ %*\\a\ in\ %f,' . 52 | \ '%f\|%l\|\ %m,' . 53 | \ g:EclimMakeCompilerAdditionalErrorFormat . 54 | \ '\%-G%.%#' 55 | 56 | " vim:ft=vim:fdm=marker 57 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/common/largefile.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Initially based on vimscript 1506 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Settings {{{ 26 | let s:file_size = g:EclimLargeFileSize * 1024 * 1024 27 | let s:events = ['BufRead', 'CursorHold', 'FileType'] 28 | " }}} 29 | 30 | function! eclim#common#largefile#InitSettings() " {{{ 31 | let file = expand("") 32 | let size = getfsize(file) 33 | if size >= s:file_size || size == -2 34 | if !exists('b:save_events') 35 | let b:save_events = &eventignore 36 | call s:ApplySettings() 37 | setlocal noswapfile nowrap bufhidden=unload 38 | autocmd eclim_largefile BufEnter,BufWinEnter call ApplySettings() 39 | autocmd eclim_largefile BufLeave,BufWinLeave call RevertSettings() 40 | endif 41 | endif 42 | endfunction " }}} 43 | 44 | function! s:ApplySettings() " {{{ 45 | let &eventignore=join(s:events, ',') 46 | if !exists('b:largefile_notified') 47 | let b:largefile_notified = 1 48 | call eclim#util#Echo('Note: Large file settings applied.') 49 | endif 50 | endfunction " }}} 51 | 52 | function! s:RevertSettings() " {{{ 53 | if exists('b:save_events') 54 | let &eventignore=b:save_events 55 | endif 56 | endfunction " }}} 57 | 58 | " vim:ft=vim:fdm=marker 59 | -------------------------------------------------------------------------------- /eclim/plugin/ftdetect_jdt.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Vim file type detection script for eclim. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | let xmltypes = { 26 | \ 'project': 'ant', 27 | \ 'hibernate-mapping': 'hibernate', 28 | \ 'beans': 'spring', 29 | \ 'document': 'forrestdocument', 30 | \ 'form-validation': 'commonsvalidator', 31 | \ 'status': 'forreststatus', 32 | \ 'testsuite': 'junitresult', 33 | \ 'log4j:configuration': 'log4j' 34 | \ } 35 | 36 | autocmd BufRead .classpath 37 | \ call EclimSetXmlFileType({'classpath': 'eclipse_classpath'}) 38 | autocmd BufRead ivy.xml 39 | \ call EclimSetXmlFileType({'ivy-module': 'ivy'}) 40 | autocmd BufRead pom.xml 41 | \ call EclimSetXmlFileType({'project': 'mvn_pom'}) 42 | autocmd BufRead struts-config.xml 43 | \ call EclimSetXmlFileType({'struts-config': 'strutsconfig'}) 44 | autocmd BufRead *.tld 45 | \ call EclimSetXmlFileType({'taglib': 'tld'}) 46 | autocmd BufRead *web.xml 47 | \ call EclimSetXmlFileType({'web-app': 'webxml'}) 48 | autocmd BufRead *.wsdl 49 | \ call EclimSetXmlFileType({'definitions': 'wsdl', 'wsdl:definitions': 'wsdl'}) 50 | autocmd BufRead *.xml call EclimSetXmlFileType(xmltypes) 51 | 52 | autocmd BufRead *.gant set ft=gant 53 | autocmd BufRead *.gst set ft=groovy_simple_template 54 | 55 | " vim:ft=vim:fdm=marker 56 | -------------------------------------------------------------------------------- /eclim/plugin/java_tools.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/java/tools.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2016 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Autocmds {{{ 26 | augroup eclim_java_class_read 27 | autocmd! 28 | autocmd BufReadCmd *.class call eclim#java#util#ReadClassPrototype() 29 | augroup END 30 | " }}} 31 | 32 | " Command Declarations {{{ 33 | if !exists(":Jps") && executable('jps') 34 | command Jps :call eclim#java#tools#Jps() 35 | endif 36 | 37 | if !exists(":Ant") 38 | command -bang -nargs=* -complete=customlist,eclim#java#ant#complete#CommandCompleteTarget 39 | \ Ant :call eclim#java#tools#MakeWithJavaBuildTool('eclim_ant', '', '') 40 | endif 41 | 42 | if !exists(":Maven") 43 | command -bang -nargs=* Maven 44 | \ :call eclim#java#tools#MakeWithJavaBuildTool('eclim_maven', '', '') 45 | endif 46 | if !exists(":MavenRepo") 47 | command -nargs=0 48 | \ MavenRepo :call eclim#java#maven#SetClasspathVariable('Maven', 'MAVEN_REPO', '') 49 | endif 50 | if !exists(":Mvn") 51 | command -bang -nargs=* Mvn 52 | \ :call eclim#java#tools#MakeWithJavaBuildTool('eclim_mvn', '', '') 53 | endif 54 | if !exists(":MvnRepo") 55 | command -nargs=* 56 | \ MvnRepo :call eclim#java#maven#SetClasspathVariable('Mvn', 'M2_REPO', '') 57 | endif 58 | " }}} 59 | 60 | " vim:ft=vim:fdm=marker 61 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/format.txt: -------------------------------------------------------------------------------- 1 | *vim-java-format.html* 2 | 3 | Java Source Code Formatting 4 | *************************** 5 | 6 | Eclim provides the ability to format java source code using the 7 | eclipse formatter selected for your workspace. 8 | 9 | Source code formatting is invoked in eclipse using the shortcut 10 | , or from the Source / Format menu. The eclim equivalent is 11 | invoked using the :JavaFormat command described below. 12 | 13 | *:JavaFormat* 14 | 15 | - :JavaFormat - Formats the current visual selection (or the current 16 | line, if nothing is selected). To format the whole file, use 17 | :%JavaFormat. 18 | Given the following file: 19 | 20 | > 21 | 22 | /** 23 | * @return 24 | * 25 | * Service 26 | * for test Eclipse formatting. 27 | */ 28 | public 29 | static String 30 | getAbstractService 31 | () 32 | { 33 | if (abstractService == null) 34 | { 35 | throw new RuntimeException( "abstractService isn't initialized !"); 36 | } 37 | return abstractService; 38 | } 39 | 40 | < 41 | 42 | 43 | You can execute :%JavaFormat to format the code according to your 44 | eclipse settings. 45 | 46 | > 47 | 48 | /** 49 | * @return 50 | * 51 | * Service for test Eclipse formatting. 52 | */ 53 | public static String getAbstractService() { 54 | if (abstractService == null) { 55 | throw new RuntimeException("abstractService isn't initialized !"); 56 | } 57 | return abstractService; 58 | } 59 | 60 | < 61 | 62 | 63 | 64 | Configuration 65 | ============= 66 | 67 | *org.eclim.java.format.strip_trialing_whitespace* 68 | 69 | - org.eclim.java.format.strip_trialing_whitespace - When set to 70 | true, all trailing whitespace will be removed when formatting java 71 | code. 72 | Aside from the above configuration, source code formatting is only 73 | configurable via the eclipse GUI. So to make changes to the eclipse 74 | java formatting rules, shutdown eclim, start the eclipse GUI and 75 | configure your settings via: 76 | 77 | Preferences ‣ Java ‣ Code Style ‣ Formatter ‣ Active Profile: ‣ Edit 78 | 79 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/javascript/index.txt: -------------------------------------------------------------------------------- 1 | *vim-javascript-index.html* 2 | 3 | Javascript 4 | ********** 5 | 6 | 7 | Validation 8 | ========== 9 | 10 | When editing a javascript file eclim will default to validating the 11 | file when it is written. Any errors will be added to the current 12 | window's location list (:help location-list) and their corresponding 13 | line number noted via Vim's sign functionality. 14 | 15 | Javascript validation currently uses JavaScript Lint 16 | (http://www.javascriptlint.com/) to perform the validation. To use it 17 | you will need to first install JavaScript Lint and put it in your 18 | path. 19 | 20 | Installing on windows and the mac should be very straight forward 21 | since pre-compiled version for each are available for download on the 22 | JavaScript Lint (http://www.javascriptlint.com/) site. For other unix 23 | based systems (linux, bsd, etc.) the installation procedure is not so 24 | obvious. Here are the steps used to compile and install it on a linux 25 | machine (your paths may vary): 26 | 27 | > 28 | 29 | $ cd jsl-/src 30 | $ make -f Makefile.ref 31 | 32 | # this path will undoubtedly vary on non-linux machines, so watch the 33 | # make output for the real destination. 34 | $ sudo cp Linux_All_DBG.OBJ/jsl /usr/local/bin 35 | 36 | < 37 | 38 | 39 | If you don't want javascript files validated when saving them, you can 40 | set the g:EclimJavascriptValidate variable described in the 41 | configuration section below. 42 | 43 | *:Validate_javascript* 44 | 45 | Regardless of whether you have validation enabled upon saving or not, 46 | the command :Validate is available to manually execute the validation. 47 | 48 | 49 | Configuration 50 | ============= 51 | 52 | Vim Settings (|vim-settings|) 53 | 54 | *g:EclimJavascriptValidate* 55 | 56 | - g:EclimJavascriptValidate (Default: 1) - If set to 0, disables 57 | javascript validation when saving the file. 58 | - g:EclimValidateSortResults (Default: 'occurrence') - If set to 59 | 'severity', the validation results will be sorted by severity 60 | (errors > warnings > info > etc.) 61 | *g:EclimJavascriptLintConf* 62 | 63 | - g:EclimJavascriptLintConf (Default: '~/.jslrc') - Used to set the 64 | location of your jsl config file. 65 | 66 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/compiler/eclim_maven.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Compiler for maven 1.x. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | if exists("current_compiler") 26 | finish 27 | endif 28 | let current_compiler = "eclim_maven" 29 | 30 | if !exists('g:EclimMavenCompilerAdditionalErrorFormat') 31 | let g:EclimMavenCompilerAdditionalErrorFormat = '' 32 | endif 33 | 34 | CompilerSet makeprg=maven\ --find\ project.xml\ $* 35 | 36 | " Lines 17 - 20: javac minus adornments (must be last to prevent picking up 37 | " other errors in the wrong format). 38 | exec 'CompilerSet errorformat=' . 39 | \ '\%A%.%#[javac]\ %f:%l:\ %m,' . 40 | \ '\%C%.%#[javac]\ symbol%.%#:\ %m,' . 41 | \ '\%C%.%#[javac]\ location%.%#:\ %m,' . 42 | \ '\%-Z%.%#[javac]\ %p^,' . 43 | \ '\%W%.%#[javadoc]\ %f:%l:\ warning\ -\ %m,' . 44 | \ '\%E%.%#[javadoc]\ %f:%l:\ error\ -\ %m,' . 45 | \ '\%A%.%#[javadoc]\ %f:%l:\ %m,' . 46 | \ '\%-C%.%#[javadoc]\ location:\ %.%#,' . 47 | \ '\%-Z%.%#[javadoc]\ %p^,' . 48 | \ '\%-G%.%#[javadoc]\ Note:%.%#,' . 49 | \ '\%-G%.%#[javadoc]\ javadoc:%.%#,' . 50 | \ '\%+A%.%#[junit]\ %.%#Failures:\ %[%^0]%.%#\ Time\ elapsed:\ %.%#,' . 51 | \ '\%-Z%.%#[junit]%.%#\ Test\ %f\ FAILED,' . 52 | \ '\%+A%.%#[junit]%.%#\ %.%#Errors:\ %[%^0]%.%#\ Time\ elapsed:\ %.%#,' . 53 | \ '\%-Z%.%#[junit]\ Test\ %f\ FAILED,' . 54 | \ g:EclimMavenCompilerAdditionalErrorFormat . 55 | \ '\%A%f:%l:\ %m,' . 56 | \ '\%Csymbol%.%#:\ %m,' . 57 | \ '\%Clocation%.%#:\ %m,' . 58 | \ '\%-Z\ %p^,' . 59 | \ '\%-G%.%#' 60 | 61 | " vim:ft=vim:fdm=marker 62 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/html/validate.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/html/validate.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | function! eclim#html#validate#Validate(on_save) " {{{ 26 | let validate = !a:on_save || ( 27 | \ g:EclimHtmlValidate && 28 | \ (!exists('g:EclimFileTypeValidate') || g:EclimFileTypeValidate)) 29 | 30 | if !validate || eclim#util#WillWrittenBufferClose() 31 | return 32 | endif 33 | 34 | if !eclim#project#util#IsCurrentFileInProject(!a:on_save) 35 | return 36 | endif 37 | 38 | " prevent closing of sign column between validation methods 39 | call eclim#display#signs#SetPlaceholder() 40 | 41 | call eclim#lang#Validate('html', a:on_save) 42 | 43 | " prevent closing of sign column between validation methods 44 | "call eclim#display#signs#SetPlaceholder() 45 | 46 | " disabled for now since the parser will attempt to follow all style tags 47 | " and interprets //domain.com/styles.css as an ftp path leading to 48 | " long validation delays due to connection timeouts. 49 | "let html_errors = getloclist(0) 50 | "let css_errors = [] 51 | "if search('. 19 | " 20 | " }}} 21 | 22 | function! eclim#display#fold#GetTreeFold(lnum) " {{{ 23 | " Folding to create a tree structure 24 | " The default VIM fold shows the first line of a block separately. 25 | " But we want to show it with its contents. This is more compact and 26 | " easier to read. 27 | " Code is taken from: 28 | " http://learnvimscriptthehardway.stevelosh.com/chapters/49.html 29 | if getline(a:lnum) =~? '\v^\s*$' 30 | return '-1' 31 | endif 32 | 33 | let this_indent = eclim#display#fold#IndentLevel(a:lnum) 34 | let next_line = eclim#display#fold#NextNonBlankLine(a:lnum) 35 | let next_indent = eclim#display#fold#IndentLevel(next_line) 36 | 37 | if next_indent == this_indent 38 | return this_indent 39 | elseif next_indent < this_indent 40 | return this_indent 41 | elseif next_indent > this_indent 42 | return '>' . next_indent 43 | endif 44 | endfunction " }}} 45 | 46 | function! eclim#display#fold#IndentLevel(lnum) " {{{ 47 | return indent(a:lnum) / &shiftwidth 48 | endfunction " }}} 49 | 50 | function! eclim#display#fold#NextNonBlankLine(lnum) " {{{ 51 | let numlines = line('$') 52 | let current = a:lnum + 1 53 | 54 | while current <= numlines 55 | if getline(current) =~? '\v\S' 56 | return current 57 | endif 58 | 59 | let current += 1 60 | endwhile 61 | 62 | return -2 63 | endfunction " }}} 64 | 65 | function! eclim#display#fold#TreeFoldText() " {{{ 66 | let line = substitute(getline(v:foldstart), '▾', '▸', 'g') 67 | return line 68 | endfunction " }}} 69 | 70 | " vim:ft=vim:fdm=marker 71 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/taglisttoo/lang/wsdl.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " Copyright (c) 2005 - 2011, Eric Van Dewoestine 5 | " All rights reserved. 6 | " 7 | " Redistribution and use of this software in source and binary forms, with 8 | " or without modification, are permitted provided that the following 9 | " conditions are met: 10 | " 11 | " * Redistributions of source code must retain the above 12 | " copyright notice, this list of conditions and the 13 | " following disclaimer. 14 | " 15 | " * Redistributions in binary form must reproduce the above 16 | " copyright notice, this list of conditions and the 17 | " following disclaimer in the documentation and/or other 18 | " materials provided with the distribution. 19 | " 20 | " * Neither the name of Eric Van Dewoestine nor the names of its 21 | " contributors may be used to endorse or promote products derived from 22 | " this software without specific prior written permission of 23 | " Eric Van Dewoestine. 24 | " 25 | " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 26 | " IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 27 | " THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28 | " PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | " CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30 | " EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 31 | " PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 32 | " PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 33 | " LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 34 | " NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 35 | " SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | " }}} 37 | 38 | " Parse(file, settings) {{{ 39 | function! eclim#taglisttoo#lang#wsdl#Parse(file, settings) 40 | return taglisttoo#util#Parse(a:file, a:settings, [ 41 | \ ['t', "]*?name=['\"](.*?)['\"]", 1], 42 | \ ['m', "]*?name=['\"](.*?)['\"]", 1], 43 | \ ['p', "]*?name=['\"](.*?)['\"]>\\s*]*?name=['\"]([^\n]*?)['\"]>\\s*. 22 | " 23 | " }}} 24 | 25 | let b:did_indent = 1 26 | if &indentexpr =~ 'EclimGetCssIndent' || 27 | \ (!exists('b:disableOverride') && exists('g:EclimCssIndentDisabled')) 28 | finish 29 | endif 30 | 31 | runtime eclim/indent/indentanything.vim 32 | 33 | setlocal indentexpr=EclimGetCssIndent(v:lnum) 34 | setlocal indentkeys=0{,0},!^F,o,O 35 | 36 | " EclimGetCssIndent(lnum) {{{ 37 | function! EclimGetCssIndent(lnum) 38 | let adj = 0 39 | let prevline = prevnonblank(a:lnum - 1) 40 | 41 | " handle case where previous line is a multi-line comment (/* */) on one 42 | " line, which IndentAnything doesn't handle properly. 43 | if getline(prevline) =~ '^\s\+/\*.\{-}\*/\s*$' 44 | let adj = indent(prevline) 45 | endif 46 | 47 | return IndentAnything() + adj 48 | endfunction " }}} 49 | 50 | " CssIndentAnythingSettings() {{{ 51 | function! CssIndentAnythingSettings() 52 | " Syntax name REs for comments and strings. 53 | let b:commentRE = 'cssComment' 54 | let b:lineCommentRE = 'cssComment' 55 | let b:blockCommentRE = 'cssComment' 56 | let b:stringRE = 'cssStringQ\(Q\)\?' 57 | 58 | " Setup for C-style comment indentation. 59 | let b:blockCommentStartRE = '/\*' 60 | let b:blockCommentMiddleRE = '\*' 61 | let b:blockCommentEndRE = '\*/' 62 | let b:blockCommentMiddleExtra = 1 63 | 64 | " Indent another level for each non-closed paren/'(' and brace/'{' on the 65 | " previous line. 66 | let b:indentTrios = [ 67 | \ [ '{', '', '}' ] 68 | \ ] 69 | endfunction " }}} 70 | 71 | call CssIndentAnythingSettings() 72 | 73 | " vim:ft=vim:fdm=marker 74 | -------------------------------------------------------------------------------- /eclim/plugin/settings_web.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Global Varables {{{ 23 | call eclim#AddVimSetting( 24 | \ 'Lang/Css', 'g:EclimCssValidate', 1, 25 | \ 'Sets whether or not to validate css files on save.', 26 | \ '\(0\|1\)') 27 | call eclim#AddVimSetting( 28 | \ 'Lang/Dtd', 'g:EclimDtdValidate', 1, 29 | \ 'Sets whether or not to validate dtd files on save.', 30 | \ '\(0\|1\)') 31 | 32 | call eclim#AddVimSetting( 33 | \ 'Lang/Html', 'g:EclimHtmlValidate', 1, 34 | \ 'Sets whether or not to validate html files on save.', 35 | \ '\(0\|1\)') 36 | call eclim#AddVimSetting( 37 | \ 'Lang/Html', 'g:EclimHtmlSyntasticEnabled', 0, 38 | \ "Only enable this if you want both eclim and syntastic to validate your html files.\n" . 39 | \ "If you want to use syntastic instead of eclim, simply disable HtmlValidate.", 40 | \ '\(0\|1\)') 41 | 42 | call eclim#AddVimSetting( 43 | \ 'Lang/Javascript', 'g:EclimJavascriptValidate', 1, 44 | \ 'Sets whether or not to validate javascript files on save.', 45 | \ '\(0\|1\)') 46 | if !exists("g:EclimJavascriptLintEnabled") 47 | " enabling by default until jsdt validation is mature enough to use. 48 | "let g:EclimJavascriptLintEnabled = 0 49 | let g:EclimJavascriptLintEnabled = 1 50 | endif 51 | call eclim#AddVimSetting( 52 | \ 'Lang/Javascript', 'g:EclimJavascriptLintConf', eclim#UserHome() . '/.jslrc', 53 | \ 'The path to your JavaScript Lint configuration file.') 54 | 55 | call eclim#AddVimSetting( 56 | \ 'Lang/Xsd', 'g:EclimXsdValidate', 1, 57 | \ 'Sets whether or not to validate xsd files on save.', 58 | \ '\(0\|1\)') 59 | " }}} 60 | 61 | " vim:ft=vim:fdm=marker 62 | -------------------------------------------------------------------------------- /eclim/indent/dtd.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Dtd indent file using IndentAnything. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | let b:did_indent = 1 26 | if &indentexpr =~ 'EclimGetDtdIndent' || 27 | \ (!exists('b:disableOverride') && exists('g:EclimDtdIndentDisabled')) 28 | finish 29 | endif 30 | 31 | runtime eclim/indent/indentanything.vim 32 | 33 | setlocal indentexpr=EclimGetDtdIndent(v:lnum) 34 | setlocal indentkeys=o,O,*,<>>,<<> 35 | 36 | " EclimGetDtdIndent(lnum) {{{ 37 | function! EclimGetDtdIndent(lnum) 38 | let adj = 0 39 | " handle case where previous line is a multi-line comment () on one 40 | " line, which IndentAnything doesn't handle properly. 41 | let prevline = prevnonblank(a:lnum - 1) 42 | if getline(prevline) =~ '^\s\+' 43 | let adj = indent(prevline) 44 | endif 45 | return IndentAnything() + adj 46 | endfunction " }}} 47 | 48 | " DtdIndentAnythingSettings() {{{ 49 | function! DtdIndentAnythingSettings() 50 | " Syntax name REs for comments and strings. 51 | let b:blockCommentRE = 'dtdComment\|xmlComment' 52 | let b:commentRE = b:blockCommentRE 53 | let b:lineCommentRE = b:blockCommentRE 54 | let b:stringRE = 'dtdString\|xmlString' 55 | let b:singleQuoteStringRE = b:stringRE 56 | let b:doubleQuoteStringRE = b:stringRE 57 | 58 | setlocal comments=sr: 59 | let b:blockCommentStartRE = '' 62 | let b:blockCommentMiddleExtra = 2 63 | 64 | " Indent another level for each non-closed element tag. 65 | let b:indentTrios = [ 66 | \ [ '<\!\w', '', '>' ], 67 | \ [ '(', '', ')' ], 68 | \ ] 69 | endfunction " }}} 70 | 71 | call DtdIndentAnythingSettings() 72 | 73 | " vim:ft=vim:fdm=marker 74 | -------------------------------------------------------------------------------- /eclim/ftplugin/eclipse_classpath.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/java/classpath.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " load any xml related functionality 26 | runtime! ftplugin/xml.vim 27 | runtime! indent/xml.vim 28 | 29 | augroup eclim_xml 30 | autocmd! BufWritePost 31 | autocmd BufWritePost call eclim#project#util#ProjectUpdate() 32 | augroup END 33 | 34 | " Command Declarations {{{ 35 | if !exists(":NewSrcEntry") 36 | command -nargs=1 -complete=customlist,eclim#project#util#CommandCompleteProjectRelative -buffer 37 | \ NewSrcEntry :call eclim#java#classpath#NewClasspathEntry('src', '') 38 | endif 39 | if !exists(":NewProjectEntry") 40 | command -nargs=1 -complete=customlist,eclim#java#util#CommandCompleteProject -buffer 41 | \ NewProjectEntry :call eclim#java#classpath#NewClasspathEntry('project', '') 42 | endif 43 | if !exists(":NewJarEntry") 44 | command -nargs=+ -complete=customlist,eclim#project#util#CommandCompleteAbsoluteOrProjectRelative -buffer 45 | \ NewJarEntry 46 | \ :call eclim#java#classpath#NewClasspathEntry('lib', ) 47 | endif 48 | if !exists(":NewVarEntry") 49 | command -nargs=+ -complete=customlist,eclim#java#classpath#CommandCompleteVarPath -buffer 50 | \ NewVarEntry 51 | \ :call eclim#java#classpath#NewClasspathEntry('var', ) 52 | endif 53 | if !exists(":VariableList") 54 | command -buffer VariableList :call eclim#java#classpath#VariableList() 55 | endif 56 | if !exists(":VariableCreate") 57 | command -nargs=+ -buffer -complete=customlist,eclim#java#classpath#CommandCompleteVarAndDir 58 | \ VariableCreate :call eclim#java#classpath#VariableCreate() 59 | endif 60 | if !exists(":VariableDelete") 61 | command -nargs=1 -buffer -complete=customlist,eclim#java#classpath#CommandCompleteVar 62 | \ VariableDelete :call eclim#java#classpath#VariableDelete('') 63 | endif 64 | " }}} 65 | 66 | " vim:ft=vim:fdm=marker 67 | -------------------------------------------------------------------------------- /eclim/doc/vim/python/search.txt: -------------------------------------------------------------------------------- 1 | *vim-python-search.html* 2 | 3 | Python Search 4 | ************* 5 | 6 | *:PythonSearch* 7 | 8 | 9 | Element Search 10 | ============== 11 | 12 | Element searching allows you to place the cursor over just about any 13 | element in a source file (method call, class name, constant) and 14 | perform a search for that element by issuing the command 15 | :PythonSearch. By default this command will search for declarations, 16 | but you can specify that you want to search for references using: 17 | 18 | > 19 | 20 | :PythonSearch -x references 21 | 22 | < 23 | 24 | 25 | If only one result is found and that result is in the current source 26 | file, the cursor will be moved to the element found. Otherwise, on 27 | single result matches, the value of |g:EclimPythonSearchSingleResult| 28 | will be consulted for the action to take. If there are multiple 29 | results, the quickfix list will be opened with the list of results. 30 | You can also force the action to use for the current search by 31 | suppling the -a arg: 32 | 33 | > 34 | 35 | :PythonSearch -x references -a edit 36 | 37 | < 38 | 39 | 40 | Note: :PythonSearch does not currently support searching for 41 | patterns. Attempting to supply a pattern to search for will result 42 | in an error. 43 | 44 | *:PythonSearchContext* 45 | 46 | As a convenience eclim also provides the command :PythonSearchContext. 47 | This command accepts only the optional -a argument described above, 48 | and will perform the appropriate search depending on the context of 49 | the element under the cursor. 50 | 51 | - If the cursor is on the declaration of a class, function, or 52 | method then it will search for all occurrences. 53 | - Otherwise, it will search for the declaration of the element. 54 | 55 | Configuration 56 | ============= 57 | 58 | Vim Settings (|vim-settings|) 59 | 60 | *g:EclimPythonSearchSingleResult* 61 | 62 | - g:EclimPythonSearchSingleResult (Default: 'split') - Determines 63 | what action to take when a only a single result is found. 64 | Possible values include: 65 | 66 | - 'split' - open the result in a new window via "split". 67 | - 'edit' - open the result in the current window. 68 | - 'tabnew' - open the result in a new tab. 69 | This setting overrides the global default for all supported language 70 | types which can be set using the g:EclimDefaultFileOpenAction 71 | setting which accepts the same possible values. 72 | 73 | - g:EclimQuickFixOpen (Default: 'botright copen') Specifies the 74 | command used to open the quickfix window when multiple results are 75 | found. 76 | - g:EclimQuickFixHeight (Default: 10) - Sets the height, in lines, 77 | of the quickfix window when eclim opens it to display search 78 | results. 79 | 80 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/autoload/eclim/xml/validate.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2005 - 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Script Variables {{{ 23 | let s:command_validate = '-command xml_validate -p "" -f ""' 24 | " }}} 25 | 26 | function! eclim#xml#validate#Validate(on_save, ...) " {{{ 27 | " Optional args: 28 | " bang: '!' or '', where '!' indicates that we should not jump to the 29 | " first error. 30 | if a:on_save && (!g:EclimXmlValidate || eclim#util#WillWrittenBufferClose()) 31 | return 32 | endif 33 | 34 | if eclim#EclimAvailable(0) 35 | if !eclim#project#util#IsCurrentFileInProject() 36 | return 37 | endif 38 | 39 | let project = eclim#project#util#GetCurrentProjectName() 40 | let file = eclim#project#util#GetProjectRelativeFilePath() 41 | let command = s:command_validate 42 | let command = substitute(command, '', project, '') 43 | let command = substitute(command, '', file, '') 44 | if search('xsi:schemaLocation', 'cnw') 45 | let command .= ' -s' 46 | endif 47 | 48 | let result = eclim#Execute(command) 49 | if type(result) == g:LIST_TYPE && len(result) > 0 50 | let errors = eclim#util#ParseLocationEntries( 51 | \ result, g:EclimValidateSortResults) 52 | call eclim#util#SetLocationList(errors) 53 | " bang arg supplied, but no bang, so jump to first error. 54 | if len(a:000) > 0 && a:000[0] == '' 55 | lfirst 56 | endif 57 | return 1 58 | else 59 | call eclim#util#ClearLocationList() 60 | return 0 61 | endif 62 | else 63 | " alternative method via xmllint 64 | if !a:on_save && executable('xmllint') 65 | let file = substitute(expand('%:p'), '\', '/', 'g') 66 | call eclim#util#MakeWithCompiler('eclim_xmllint', '', file) 67 | call eclim#display#signs#Update() 68 | elseif !a:on_save 69 | call eclim#util#EchoWarning("eclimd not running.") 70 | endif 71 | endif 72 | return 0 73 | endfunction " }}} 74 | 75 | " vim:ft=vim:fdm=marker 76 | -------------------------------------------------------------------------------- /eclim/syntax/ant.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Enhancement to default ant syntax file to add support for ant-contrib and 5 | " allow user to define list of additional tasks to be recognized. 6 | " 7 | " License: 8 | " 9 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 10 | " 11 | " This program is free software: you can redistribute it and/or modify 12 | " it under the terms of the GNU General Public License as published by 13 | " the Free Software Foundation, either version 3 of the License, or 14 | " (at your option) any later version. 15 | " 16 | " This program is distributed in the hope that it will be useful, 17 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | " GNU General Public License for more details. 20 | " 21 | " You should have received a copy of the GNU General Public License 22 | " along with this program. If not, see . 23 | " 24 | " }}} 25 | 26 | " antcontrib elements 27 | syn keyword antElement if then else elseif for foreach switch 28 | syn keyword antElement throw trycatch try catch finally 29 | syn keyword antElement propertycopy propertyselector propertyregex var 30 | syn keyword antElement antcallback antfetch runtarget 31 | syn keyword antElement outofdate timestampselector osfamily shellscript 32 | syn keyword antElement pathtofileset sortlist urlencode compilewithwalls 33 | syn keyword antElement forget assert bool limit math post stopwatch 34 | syn keyword antElement inifile antclipse antserver remoteant 35 | 36 | " ant 1.7 tasks 37 | syn keyword antElement antversion echoxml 38 | " ant 1.7 resources and resource collections 39 | syn keyword antElement bzip2resource file gzipresource javaresource 40 | syn keyword antElement propertyresource string tarentry zipentry 41 | syn keyword antElement files first restrict resources sort tokens 42 | syn keyword antElement union intersect difference 43 | " ant 1.7 selectors 44 | syn keyword antElement date depend depth different filename present containsregexp 45 | syn keyword antElement size type modified signedselector scriptselector 46 | syn match antElement 'contains' 47 | " ant 1.7 conditions 48 | syn keyword antElement hasfreespace hasmethod isfailure length matches 49 | syn keyword antElement resourcecount resourcesmatch 50 | " ant 1.7 misc elements 51 | syn keyword antElement preserveintarget service 52 | 53 | function! s:InitUserSyntax() 54 | if exists("g:AntSyntaxElements") 55 | let elements = string(g:AntSyntaxElements) 56 | let elements = substitute(elements, '\[\(.*\)\]', '\1', '') 57 | let elements = substitute(elements, ',', '', 'g') 58 | let elements = substitute(elements, "'", '', 'g') 59 | exec 'syn keyword antElement ' . elements 60 | endif 61 | endfunction 62 | call s:InitUserSyntax() 63 | 64 | " vim:ft=vim:fdm=marker 65 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/xml/complete.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/xml/complete.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Varables {{{ 26 | let s:complete_command = 27 | \ '-command xml_complete -p "" -f "" ' . 28 | \ '-o -e ' 29 | " }}} 30 | 31 | " CodeComplete(findstart, base) {{{ 32 | " Handles xml code completion. 33 | function! eclim#xml#complete#CodeComplete(findstart, base) 34 | if !eclim#project#util#IsCurrentFileInProject(0) 35 | return a:findstart ? -1 : [] 36 | endif 37 | 38 | if a:findstart 39 | call eclim#lang#SilentUpdate(1) 40 | 41 | " locate the start of the word 42 | let line = getline('.') 43 | 44 | let start = col('.') - 1 45 | 46 | while start > 0 && line[start - 1] =~ '[[:alnum:]_-]' 47 | let start -= 1 48 | endwhile 49 | 50 | return start 51 | else 52 | let offset = eclim#util#GetOffset() + len(a:base) 53 | let project = eclim#project#util#GetCurrentProjectName() 54 | let file = eclim#lang#SilentUpdate(1, 0) 55 | if file == '' 56 | return [] 57 | endif 58 | 59 | let command = s:complete_command 60 | let command = substitute(command, '', project, '') 61 | let command = substitute(command, '', file, '') 62 | let command = substitute(command, '', offset, '') 63 | let command = substitute(command, '', eclim#util#GetEncoding(), '') 64 | 65 | let completions = [] 66 | let results = eclim#Execute(command) 67 | if type(results) != g:LIST_TYPE 68 | return 69 | endif 70 | 71 | for result in results 72 | let word = result.completion 73 | if getline('.') =~ '\w:\w*\%' . col('.') . 'c' 74 | let word = substitute(word, '^\w\+:', '', '') 75 | endif 76 | 77 | let menu = eclim#html#util#HtmlToText(result.menu) 78 | let info = eclim#html#util#HtmlToText(result.info) 79 | 80 | let dict = {'word': word, 'menu': menu, 'info': info} 81 | 82 | call add(completions, dict) 83 | endfor 84 | 85 | return completions 86 | endif 87 | endfunction " }}} 88 | 89 | " vim:ft=vim:fdm=marker 90 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/xml/definition.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/xml/definition.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2009 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Variables {{{ 26 | let s:element_def{'dtd'} = '\>\(\s\|(\|$\)' 27 | let s:element_def{'xsd'} = 28 | \ '<\s*\(.\{-}:\)\?element\>\_[^>]*name\s*=\s*' . 29 | \ g:EclimQuote . '' . g:EclimQuote 30 | " }}} 31 | 32 | " DtdDefinition(element) {{{ 33 | " Opens the current xml file's dtd definition and optionally jumps to an 34 | " element if an element name supplied. 35 | function! eclim#xml#definition#DtdDefinition(element) 36 | let dtd = eclim#xml#util#GetDtd() 37 | let element = a:element == '' ? eclim#xml#util#GetElementName() : a:element 38 | call s:OpenDefinition(dtd, element, 'dtd') 39 | endfunction " }}} 40 | 41 | " XsdDefinition(element) {{{ 42 | " Opens the current xml file's xsd definition and optionally jumps to an 43 | " element if an element name supplied. 44 | function! eclim#xml#definition#XsdDefinition(element) 45 | let element = a:element == '' ? eclim#xml#util#GetElementName() : a:element 46 | if element =~ ':' 47 | let namespace = substitute(element, ':.*', '', '') 48 | let element = substitute(element, '.*:', '', '') 49 | let xsd = eclim#xml#util#GetXsd(namespace) 50 | else 51 | let xsd = eclim#xml#util#GetXsd() 52 | endif 53 | call s:OpenDefinition(xsd, element, 'xsd') 54 | endfunction " }}} 55 | 56 | " OpenDefinition(file, element, type) {{{ 57 | " Open the supplied definition file and jump to the element if supplied. 58 | function! s:OpenDefinition(file, element, type) 59 | if a:file == '' 60 | call eclim#util#EchoWarning('Unable to locate ' . a:type . ' in current file.') 61 | return 62 | endif 63 | 64 | " see if file is already open. 65 | let winnr = bufwinnr(a:file) 66 | if winnr != -1 67 | exec winnr . 'winc w' 68 | else 69 | exec 'split ' . a:file 70 | endif 71 | 72 | " jump to element definition if supplied 73 | if a:element != '' 74 | let search = substitute(s:element_def{a:type}, '', a:element, 'g') 75 | call search(search, 'w') 76 | endif 77 | endfunction " }}} 78 | 79 | " vim:ft=vim:fdm=marker 80 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/common/license.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " 5 | " License: 6 | " 7 | " Copyright (C) 2005 - 2012 Eric Van Dewoestine 8 | " 9 | " This program is free software: you can redistribute it and/or modify 10 | " it under the terms of the GNU General Public License as published by 11 | " the Free Software Foundation, either version 3 of the License, or 12 | " (at your option) any later version. 13 | " 14 | " This program is distributed in the hope that it will be useful, 15 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | " GNU General Public License for more details. 18 | " 19 | " You should have received a copy of the GNU General Public License 20 | " along with this program. If not, see . 21 | " 22 | " }}} 23 | 24 | " Script Variables {{{ 25 | let s:year = exists('*strftime') ? strftime('%Y') : '2009' 26 | " }}} 27 | 28 | " GetLicense() {{{ 29 | " Retrieves the file containing the license text. 30 | function! eclim#common#license#GetLicense() 31 | let file = eclim#project#util#GetProjectSetting('org.eclim.project.copyright') 32 | if type(file) == g:NUMBER_TYPE 33 | return 34 | elseif file == '' 35 | call eclim#util#EchoWarning( 36 | \ "Project setting 'org.eclim.project.copyright' has not been supplied.") 37 | return 38 | endif 39 | 40 | let file = eclim#project#util#GetCurrentProjectRoot() . '/' . file 41 | if !filereadable(file) 42 | return 43 | endif 44 | return file 45 | endfunction " }}} 46 | 47 | " License(pre, post, mid) {{{ 48 | " Retrieves the license configured license and applies the specified prefix 49 | " and postfix as the lines before and after the license and uses 'mid' as the 50 | " prefix for every line. 51 | " Returns the license as a list of strings. 52 | function! eclim#common#license#License(pre, post, mid) 53 | let file = eclim#common#license#GetLicense() 54 | if type(file) == g:NUMBER_TYPE && file == 0 55 | return '' 56 | endif 57 | 58 | let contents = readfile(file) 59 | if a:mid != '' 60 | call map(contents, 'a:mid . v:val') 61 | endif 62 | 63 | if a:pre != '' 64 | call insert(contents, a:pre) 65 | endif 66 | 67 | if a:post != '' 68 | call add(contents, a:post) 69 | endif 70 | 71 | call map(contents, "substitute(v:val, '${year}', s:year, 'g')") 72 | 73 | let author = eclim#project#util#GetProjectSetting('org.eclim.user.name') 74 | if type(author) == g:STRING_TYPE && author != '' 75 | call map(contents, "substitute(v:val, '${author}', author, 'g')") 76 | endif 77 | 78 | let email = eclim#project#util#GetProjectSetting('org.eclim.user.email') 79 | if type(email) == g:STRING_TYPE && email != '' 80 | call map(contents, "substitute(v:val, '${email}', email, 'g')") 81 | endif 82 | call map(contents, "substitute(v:val, '\\s\\+$', '', '')") 83 | 84 | return contents 85 | endfunction " }}} 86 | 87 | " vim:ft=vim:fdm=marker 88 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/css/complete.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " see http://eclim.org/vim/css/complete.html 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Varables {{{ 26 | let s:complete_command = 27 | \ '-command css_complete -p "" -f "" -o -e ' 28 | " }}} 29 | 30 | " CodeComplete(findstart, base) {{{ 31 | " Handles css code completion. 32 | function! eclim#css#complete#CodeComplete(findstart, base) 33 | if !eclim#project#util#IsCurrentFileInProject(0) 34 | return a:findstart ? -1 : [] 35 | endif 36 | 37 | if a:findstart 38 | call eclim#lang#SilentUpdate(1) 39 | 40 | " locate the start of the word 41 | let line = getline('.') 42 | 43 | let start = col('.') - 1 44 | 45 | while start > 0 && line[start - 1] =~ '[[:alnum:]_-]' 46 | let start -= 1 47 | endwhile 48 | 49 | return start 50 | else 51 | let offset = eclim#util#GetOffset() + len(a:base) 52 | let project = eclim#project#util#GetCurrentProjectName() 53 | let file = eclim#lang#SilentUpdate(1, 0) 54 | if file == '' 55 | return [] 56 | endif 57 | 58 | let command = s:complete_command 59 | let command = substitute(command, '', project, '') 60 | let command = substitute(command, '', file, '') 61 | let command = substitute(command, '', offset, '') 62 | let command = substitute(command, '', eclim#util#GetEncoding(), '') 63 | 64 | let completions = [] 65 | let results = eclim#Execute(command) 66 | if type(results) != g:LIST_TYPE 67 | return 68 | endif 69 | 70 | let filter = 0 71 | for result in results 72 | let word = result.completion 73 | if word =~ '^:' 74 | let word = strpart(word, 1) 75 | let filter = 1 76 | endif 77 | 78 | let menu = result.menu 79 | let info = result.info 80 | 81 | let dict = {'word': tolower(word), 'menu': menu, 'info': info} 82 | 83 | call add(completions, dict) 84 | endfor 85 | 86 | " eclipse doesn't filter out :results properly. 87 | if filter 88 | call filter(completions, 'v:val.word =~ "^" . a:base') 89 | endif 90 | 91 | return completions 92 | endif 93 | endfunction " }}} 94 | 95 | " vim:ft=vim:fdm=marker 96 | -------------------------------------------------------------------------------- /eclim/doc/vim/core/history.txt: -------------------------------------------------------------------------------- 1 | *vim-core-history.html* 2 | 3 | Eclipse Local History 4 | ********************* 5 | 6 | Eclipse provides a feature called local history, which is basically a 7 | simplistic version control system that is updated every time you save 8 | a file. Using this local history, you can view diffs against 9 | previously saved versions of your file or revert to one of those 10 | revisions. 11 | 12 | Eclim supports updating eclipse's local history when writing files 13 | from vim, but by default this feature is disabled unless gvim was 14 | started from the eclipse gui, in which case eclim will honor the 15 | default eclipse editor behavior and update the local history. You can 16 | turn this feature on in all cases by adding the following to your 17 | vimrc: 18 | 19 | > 20 | 21 | let g:EclimKeepLocalHistory = 1 22 | 23 | < 24 | 25 | 26 | *:History* 27 | 28 | :History - Opens a temporary buffer showing the local history for the 29 | current file. In this buffer you can perform the following actions 30 | using the specified key bindings: 31 | 32 | - - view the contents of the revision under the cursor. 33 | - d - diff the revision under the cursor against the current 34 | contents. 35 | - r - revert the current file to the revision under the cursor. 36 | - c - clear the local history for the file. 37 | *:HistoryClear* 38 | 39 | :HistoryClear[!] - Clears the local history for the current file. 40 | When the bang (!) is supplied, you are not prompted before clearing 41 | the history. 42 | 43 | *:HistoryDiffNext* 44 | 45 | :HistoryDiffNext - While the history buffer is open, this command 46 | allows you to diff the current file against the next entry in the 47 | history stack. 48 | 49 | *:HistoryDiffPrev* 50 | 51 | :HistoryDiffPrev - Just like :HistoryDiffNext but diffs against the 52 | previous entry in the stack. 53 | 54 | 55 | Configuration 56 | ============= 57 | 58 | Eclipse Settings 59 | 60 | - When writing to the local history, eclim simply proxies the 61 | request to eclipse, so all eclipse settings are honored. To modify 62 | these settings you currently have to do so inside of the eclipse 63 | gui. First shut down eclimd if you are running a headless version, 64 | then open the eclipse gui and navigate to: 65 | Window ‣ Preferences ‣ General ‣ Workspace ‣ Local History 66 | 67 | And there you can edit your settings as necessary. 68 | 69 | Vim Settings (|vim-settings|) 70 | 71 | *g:EclimKeepLocalHistory* 72 | 73 | - g:EclimKeepLocalHistory (Default: 0) - Controls whether writes in 74 | vim will update the eclipse local history. This is disabled by 75 | default unless gvim was started from the eclipse gui, in which case 76 | eclim will honor the default eclipse editor behavior and update the 77 | local history. 78 | *g:EclimHistoryDiffOrientation* 79 | 80 | - g:EclimHistoryDiffOrientation (Default: 'vertical') - When 81 | initiating diffs, this setting controls whether the diff window is 82 | opened as a horizontal split or vertical. Supported values include 83 | 'horizontal' and 'vertical'. 84 | 85 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/features.txt: -------------------------------------------------------------------------------- 1 | *features.html* 2 | 3 | Features 4 | ******** 5 | 6 | The following is a partial list of eclim features with much more still 7 | to come. For more details please see the detailed documentation 8 | (|vim-index|). For a more comprehensive list you can also visit the 9 | cheatsheet (|cheatsheet|). 10 | 11 | 12 | Eclipse Projects 13 | ================ 14 | 15 | - Create, update, and delete Eclipse projects. 16 | - Easily manage Eclipse .classpath files (support for maven and 17 | ivy). 18 | - Quickly and easily manage settings globally or on a project basis. 19 | 20 | Css 21 | === 22 | 23 | - Context sensitive code completion. 24 | - Source code validation. 25 | 26 | Html 27 | ==== 28 | 29 | - Context sensitive code completion. 30 | - Automatic validation (w/ visual marking of errors and warnings). 31 | 32 | Java 33 | ==== 34 | 35 | - Automatic source code validation (w/ visual marking of errors and 36 | warnings). 37 | - Context sensitive code completion. 38 | - Code correction suggestions with option to apply a suggestion. 39 | - Class constructor generation. 40 | - Java Bean getter and setter generation. 41 | - Generation of delegate methods. 42 | - Java source and java doc searching capabilities. 43 | - Generate stub methods from implemented interfaces or super 44 | classes. 45 | - Generate stub methods for junit testing. 46 | - Quickly clean and sort imports and easily import new classes. 47 | - Automatic generation of logging initialization code, upon first 48 | usage of a logger. 49 | - Javadoc generation for package, class, field, method, etc. 50 | - Java regular expression testing. 51 | - Support for Checkstyle. 52 | - Validation of log4j xml files. 53 | 54 | Ant 55 | --- 56 | 57 | - Ant execution from any file. 58 | - Context sensitive code completion when editing build files. 59 | - Automatic validation of build files (w/ visual marking of errors 60 | and warnings). 61 | - Quick access to ant documentation. 62 | 63 | Maven 64 | ----- 65 | 66 | - Maven execution from any file. 67 | - Maven repository searching and ability to add results to pom file. 68 | 69 | JavaScript 70 | ========== 71 | 72 | - File validation using jsl (http://www.javascriptlint.com/). 73 | 74 | Python 75 | ====== 76 | 77 | - Context sensitive code completion. 78 | - Find element definition/references support. 79 | - Source code validation. 80 | - Regular expression testing. 81 | - Django functionality. 82 | 83 | Vim Script 84 | ========== 85 | 86 | - Find user defined command, function, or global variable 87 | declarations / references. 88 | - Quickly lookup help topic for a keyword, functions, command, etc. 89 | 90 | Xml / Dtd / Xsd 91 | =============== 92 | 93 | - Automatic validation (w/ visual marking of errors and warnings). 94 | - Quickly look up element definition from the current xml file's dtd 95 | or xsd. 96 | - Context sensitive code completion. 97 | 98 | Common Vim Functionality 99 | ======================== 100 | 101 | - Commands to locate a project, workspace, or current file relative 102 | file and open it (split, edit, or tabnew). 103 | - Much more... 104 | 105 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/autoload/eclim/java/new.vim: -------------------------------------------------------------------------------- 1 | " Author: Daniel Leong 2 | " 3 | " License: {{{ 4 | " 5 | " Copyright (C) 2014 Eric Van Dewoestine 6 | " 7 | " This program is free software: you can redistribute it and/or modify 8 | " it under the terms of the GNU General Public License as published by 9 | " the Free Software Foundation, either version 3 of the License, or 10 | " (at your option) any later version. 11 | " 12 | " This program is distributed in the hope that it will be useful, 13 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | " GNU General Public License for more details. 16 | " 17 | " You should have received a copy of the GNU General Public License 18 | " along with this program. If not, see . 19 | " 20 | " }}} 21 | 22 | " Script Varables {{{ 23 | let s:command_new = '-command java_new -p "" -t "" -n ""' 24 | 25 | let s:java_types = ['class', 'abstract', 'interface', 'enum', '@interface'] 26 | 27 | " }}} 28 | 29 | function! eclim#java#new#Create(type, name) " {{{ 30 | " Create a new Java Type 31 | 32 | if !eclim#project#util#IsCurrentFileInProject(0) 33 | return 34 | endif 35 | 36 | let project = eclim#project#util#GetCurrentProjectName() 37 | 38 | " strip off .java suffix if supplied. 39 | let newName = a:name 40 | if newName =~? '\.java$' 41 | let newName = substitute(newName, '\.java$', '', '') 42 | endif 43 | 44 | " prepend current package if necessary 45 | let myPackage = eclim#java#util#GetPackage() 46 | if newName !~ '\.' && len(myPackage) > 0 47 | let newName = myPackage . '.' . newName 48 | endif 49 | 50 | let command = s:command_new 51 | let command = substitute(command, "", project, '') 52 | let command = substitute(command, "", a:type, '') 53 | let command = substitute(command, "", newName, '') 54 | 55 | let result = eclim#Execute(command) 56 | if type(result) == g:LIST_TYPE 57 | let answer = eclim#util#PromptList( 58 | \ "Please choose the src directory to create this new package in", 59 | \ result) 60 | if answer == -1 61 | return 62 | endif 63 | 64 | let path = eclim#Execute(command . ' -r "' . result[answer] . '"') 65 | if type(path) != g:STRING_TYPE 66 | return 67 | endif 68 | elseif type(result) == g:STRING_TYPE 69 | let path = result 70 | else 71 | return 72 | endif 73 | 74 | call eclim#util#GoToBufferWindowOrOpen(path, g:EclimJavaNewOpenAction) 75 | endfunction " }}} 76 | 77 | function! eclim#java#new#CommandComplete(argLead, cmdLine, cursorPos) " {{{ 78 | let cmdLine = strpart(a:cmdLine, 0, a:cursorPos) 79 | let args = eclim#util#ParseCmdLine(cmdLine) 80 | if len(args) < 2 || (len(args) == 2 && cmdLine !~ '\s$') 81 | " Suggest java types 82 | let arg = substitute(a:argLead, '@', '\\@', '') 83 | return filter(copy(s:java_types), 'v:val =~ "^' . arg . '"') 84 | endif 85 | 86 | if len(a:argLead) <= 3 || a:argLead =~ '\.' 87 | " Propose packages 88 | return eclim#java#util#CommandCompletePackage( 89 | \ a:argLead, a:cmdLine, a:cursorPos) 90 | endif 91 | 92 | return [] 93 | endfunction " }}} 94 | 95 | 96 | " vim:ft=vim:fdm=marker 97 | -------------------------------------------------------------------------------- /eclim/autoload/eclim/display/menu.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Plugin to generate gvim eclim menus. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2013 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Variables {{{ 26 | 27 | let s:eclim_menus_root = [] 28 | let s:eclim_menus = {} 29 | 30 | " }}} 31 | 32 | " Generate() {{{ 33 | " Generate gvim menu items for available eclim commands. 34 | function! eclim#display#menu#Generate() 35 | " check that the menu bar is enabled or that we are running in a mac gui where 36 | " the menu bar always exists regardless of guioptions 37 | if &guioptions !~ 'm' && !has('gui_macvim') 38 | if exists('b:eclim_menus') 39 | unlet b:eclim_menus 40 | endif 41 | return 42 | endif 43 | 44 | redir => commands 45 | silent exec 'command' 46 | redir END 47 | 48 | if !exists('b:eclim_menus') 49 | let b:eclim_menus = {} 50 | 51 | let pattern = '\. 19 | " 20 | " }}} 21 | 22 | " Script Variables {{{ 23 | let s:format_command = 24 | \ '-command java_format -p "" -f "" ' . 25 | \ '-h -t -e ' 26 | let s:checkstyle_command = '-command java_checkstyle -p "" -f ""' 27 | " }}} 28 | 29 | function! eclim#java#src#Format(first, last) " {{{ 30 | if !eclim#project#util#IsCurrentFileInProject() 31 | return 32 | endif 33 | 34 | call eclim#lang#SilentUpdate() 35 | 36 | let project = eclim#project#util#GetCurrentProjectName() 37 | let file = eclim#project#util#GetProjectRelativeFilePath() 38 | 39 | let command = s:format_command 40 | let command = substitute(command, '', project, '') 41 | let command = substitute(command, '', file, '') 42 | let begin = eclim#util#GetOffset(a:first, 1) 43 | let end = eclim#util#GetOffset(a:last, 1) + len(getline(a:last)) - 1 44 | let command = substitute(command, '', begin, '') 45 | let command = substitute(command, '', end, '') 46 | let command = substitute(command, '', eclim#util#GetEncoding(), '') 47 | 48 | let result = eclim#Execute(command) 49 | if result != "0" 50 | call eclim#util#Reload({'retab': 1}) 51 | write 52 | endif 53 | endfunction " }}} 54 | 55 | function! eclim#java#src#Checkstyle() " {{{ 56 | let project = eclim#project#util#GetCurrentProjectName() 57 | if project != "" 58 | let config = 59 | \ eclim#project#util#GetProjectSetting('org.eclim.java.checkstyle.config') 60 | if type(config) == g:NUMBER_TYPE 61 | return 62 | endif 63 | 64 | if config == '' 65 | call eclim#util#EchoWarning( 66 | \ "Before invoking checkstyle, you must first configure the " . 67 | \ "location of your\ncheckstyle config via the setting: " . 68 | \ "'org.eclim.java.checkstyle.config'.") 69 | return 70 | endif 71 | 72 | let file = eclim#project#util#GetProjectRelativeFilePath() 73 | let command = s:checkstyle_command 74 | let command = substitute(command, '', project, '') 75 | let command = substitute(command, '', file, '') 76 | 77 | let result = eclim#Execute(command) 78 | if type(result) == g:LIST_TYPE && len(result) > 0 79 | let errors = eclim#util#ParseLocationEntries( 80 | \ result, g:EclimValidateSortResults) 81 | call eclim#util#SetLocationList(errors) 82 | else 83 | call eclim#util#ClearLocationList('checkstyle') 84 | endif 85 | endif 86 | endfunction " }}} 87 | 88 | " vim:ft=vim:fdm=marker 89 | -------------------------------------------------------------------------------- /eclim/doc/contribute.txt: -------------------------------------------------------------------------------- 1 | *contribute.html* 2 | 3 | Contribute 4 | ********** 5 | 6 | Eclim is a project developed entirely in my spare time, so its growth 7 | and success can be directly impacted by contributions from the 8 | community. There are several ways in which you can contribute: 9 | 10 | 1. Documentation: The documentation can always use improvements. 11 | Right now it is written entirely by me, and as such, it may not be 12 | as detailed in some areas as it should. What the documentation 13 | could really use is some help from its users: 14 | - Point out any grammar or spelling errors, since some always 15 | manage to slip through. 16 | - Point out areas of the documentation that are vague and could 17 | use elaboration. 18 | - Write new guides to be included in the "Guides" section of the 19 | site. 20 | 2. Bug Reports: Some people are a bit shy about speaking up and 21 | reporting bugs. I want to urge people not to be. If something 22 | doesn't work, report it. It may be a bug, but even if it is just a 23 | configuration issue on your end, a misconception on how you thought 24 | it should work, or some other quirk specific to your environment, 25 | speak up. These can signal that some scripts may need to validate 26 | or account for some aspect of the user's environment, or that the 27 | documentation may need some work to ensure the user knows what to 28 | expect. Any issue that goes unreported, goes unfixed, so please 29 | report all issues, big and small. 30 | 3. Feature Requests: On occasion I receive a request or two, but I 31 | would like to encourage more people to voice their opinion on what 32 | they think should be added or changed in eclim. Once again, 33 | nothing is too small to suggest. Chances are, that if you have 34 | something that you would like added or changed, there are others 35 | out there that would benefit from the same addition or 36 | modification. 37 | To see what features I have already thought about, you can view my 38 | todo list (http://github.com/ervandew/eclim/blob/master/notes.txt). 39 | 40 | 4. Code Contributions: In addition to reporting bugs or requesting 41 | features, you can also take that next step and implement a fix or 42 | feature yourself. I just ask that you document your patch 43 | accordingly so that I know exactly what you are attempting to fix 44 | or add. Also, if you plan to add a medium or large feature, please 45 | let me know prior to beginning your work. That way I can keep a 46 | small list of who is working on what to avoid any duplication of 47 | effort and link people together that wish to work on the same 48 | feature. The list would also afford me the ability to contact you 49 | should a change to eclim possibly affect what you are working on. 50 | If you plan on making any code contributes, please read the 51 | developer guide (|development-gettingstarted|) first. 52 | 5. Monetary Contributions: I am not currently accepting any 53 | donations. My day job pays well, and I work on eclim for the love 54 | of it. If you have money you would like to donate, it would go to 55 | much better use if you donated to vim 56 | (http://www.vim.org/sponsor/index.php), where it is used to help 57 | children in Uganda. Feel free to mention your referral from eclim 58 | if appropriate. 59 | 60 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/plugin/ftdetect.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Vim file type detection script for eclim. 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2011 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " EclimSetXmlFileType(map) {{{ 26 | " Sets the filetype of the current xml file to the if its root element is in the 27 | " supplied map. 28 | function! EclimSetXmlFileType(map) 29 | if !exists("b:eclim_xml_filetype") 30 | " cache the root element so that subsiquent calls don't need to re-examine 31 | " the file. 32 | if !exists("b:xmlroot") 33 | let b:xmlroot = s:GetRootElement() 34 | endif 35 | 36 | if has_key(a:map, b:xmlroot) 37 | let b:eclim_xml_filetype = a:map[b:xmlroot] 38 | let &filetype = b:eclim_xml_filetype 39 | endif 40 | 41 | " occurs when re-opening an existing buffer. 42 | elseif &ft != b:eclim_xml_filetype 43 | if has_key(a:map, b:xmlroot) 44 | let &filetype = a:map[b:xmlroot] 45 | endif 46 | endif 47 | endfunction " }}} 48 | 49 | " GetRootElement() {{{ 50 | " Get the root element name. 51 | function! s:GetRootElement() 52 | " handle case where file doesn't have xml an extension or an xml declaration 53 | if expand('%:e') != 'xml' && getline(1) !~ '' 54 | set filetype=xml 55 | endif 56 | 57 | let root = '' 58 | let element = '.\{-}<\([a-zA-Z].\{-}\)\(\s\|>\|$\).*' 59 | 60 | " search for usage of root element (first occurence of <[a-zA-Z]). 61 | let numlines = line("$") 62 | let line = 1 63 | let pos = getpos('.') 64 | try 65 | while line <= numlines 66 | call cursor(line, 1) 67 | let found = searchpos('<[a-zA-Z]', 'cn', line) 68 | if found[0] 69 | let syntaxName = synIDattr(synID(found[0], found[1], 1), "name") 70 | if syntaxName == 'xmlTag' 71 | let root = substitute(getline(line), element, '\1', '') 72 | break 73 | endif 74 | endif 75 | let line = line + 1 76 | endwhile 77 | finally 78 | call setpos('.', pos) 79 | endtry 80 | 81 | " no usage, so look for doctype definition of root element 82 | if root == '' 83 | let linenum = search('', 'bcnw') 84 | if linenum > 0 85 | let line = '' 86 | while getline(linenum) !~ '>' 87 | let line = line . getline(linenum) 88 | let linenum += 1 89 | endwhile 90 | let line = line . getline(linenum) 91 | 92 | let root = substitute(line, '.*DOCTYPE\s\+\(.\{-}\)\s\+.*', '\1', '') 93 | 94 | return root != line ? root : '' 95 | endif 96 | endif 97 | 98 | return root 99 | endfunction " }}} 100 | 101 | " vim:ft=vim:fdm=marker 102 | -------------------------------------------------------------------------------- /eclim/doc/vim/python/path.txt: -------------------------------------------------------------------------------- 1 | *vim-python-path.html* 2 | 3 | Python Interpreter / Paths 4 | ************************** 5 | 6 | Python code completion, searching, and other features require that you 7 | first create a python (pydev) project: 8 | 9 | > 10 | 11 | :ProjectCreate path/to/project -n python 12 | 13 | < 14 | 15 | 16 | If you haven't already configured a python interpreter, then you will 17 | be prompted to do so when creating your first python project. When 18 | creating your project a .pydevproject file will be also be created. 19 | This file is used to define which interpreter to use for your project, 20 | the location of your project's python source files, and the location 21 | of any third party libraries your project requires (if not already on 22 | your project's interpreter path). 23 | 24 | Note: When saving the .pydevproject file from within vim, eclim will 25 | update your project's configuration in memory or report any errors 26 | raised by pydev.Also note that although the .pydevproject file is 27 | xml, pydev doesn't handle stripping leading/trailing space or new 28 | lines from xml text values, so refrain from attempting to format 29 | this file and try to stick to using the commands below to configure 30 | your project. 31 | 32 | 33 | Interpreter 34 | =========== 35 | 36 | Eclim provides commands to help you manage python interpreters 37 | available to pydev projects as well as which interpreter to use for 38 | each of your projects. 39 | 40 | *:PythonInterpreterAdd* 41 | 42 | - :PythonInterpreterAdd [-n ] Command to 43 | add a new interpreter to pydev which will then be available to your 44 | projects. If you supply only the path to the interpreter, then eclim 45 | will set the name of that interpreter to the basename of the path 46 | supplied. 47 | > 48 | :PythonInterpreterAdd /usr/bin/python3 49 | :PythonInterpreterAdd -n python3.3 /usr/bin/python3 50 | 51 | < 52 | 53 | *:PythonInterpreterRemove* 54 | 55 | - :PythonInterpreterRemove Command to remove an 56 | interpreter from pydev. 57 | > 58 | :PythonInterpreterRemove /usr/bin/python3 59 | 60 | < 61 | 62 | *:PythonInterpreterList* 63 | 64 | - :PythonInterpreterList Command to list all interpreters configured 65 | with pydev. 66 | *:PythonInterpreter* 67 | 68 | - :PythonInterpreter [] 69 | When invoked with no arguments this command will print out the path 70 | to the python interpreter currently set for your project. This 71 | command can also be use to set your project's interpreter by 72 | supplying either the name of an interpreter already configured with 73 | pydev (via |:PythonInterpreterAdd|), or the absolute path to an 74 | interpreter on your system. 75 | > 76 | :PythonInterpreter python_2.7 77 | :PythonInterpreter /usr/bin/python3 78 | 79 | < 80 | 81 | This command supports command completion of interpreter names or 82 | paths (if you start typing an absolute path). 83 | 84 | 85 | Paths 86 | ===== 87 | 88 | *:NewSrcEntry_pydev* 89 | 90 | - :NewSrcEntry - Add a new source entry which references a 91 | source directory in your project. 92 | > 93 | /myproject/src 94 | 95 | < 96 | 97 | This command supports command completion of project relative 98 | directories. 99 | 100 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/java/java.txt: -------------------------------------------------------------------------------- 1 | *vim-java-java.html* 2 | 3 | Java / Jps 4 | ********** 5 | 6 | *:Java* 7 | 8 | 9 | Java 10 | ==== 11 | 12 | To run the configured main class for your project, you may use the 13 | :Java command, which executes java and displays the results in a 14 | temporary buffer. 15 | 16 | Note: Please note that this command is not intended to be a full 17 | replacement for the more advance support provided by eclipse, ant, 18 | or maven. 19 | 20 | The :Java will locate the main class to run using the following steps: 21 | 22 | 1. if the first argument is '%' (:Java %) then run the current 23 | class. 24 | 2. if the setting org.eclim.java.run.mainclass is set, then use the 25 | value as the fully qualified class name to run. 26 | 3. lastly, attempt to locate a class containing a static main 27 | method, if only one is found, use that class. 28 | 29 | Configuration 30 | ------------- 31 | 32 | *org.eclim.java.run.mainclass* 33 | 34 | Eclim Settings (|vim-settings|) 35 | 36 | - org.eclim.java.run.mainclass - Fully qualified name of the class 37 | containing the main method. 38 | - org.eclim.java.run.jvmargs - Json formatted list of default jvm 39 | args. 40 | *:JavaClasspath* 41 | 42 | 43 | Echo the classpath for the current project 44 | ------------------------------------------ 45 | 46 | When editing a java file, eclim provides the command :JavaClasspath 47 | which will echo the project's resolved classpath entries separated by 48 | the system path separator or a supplied delimiter: 49 | 50 | > 51 | 52 | :JavaClasspath 53 | :JavaClasspath -d \\n 54 | 55 | < 56 | 57 | 58 | If you would like to get the classpath from a script, you can also 59 | call eclim directly: 60 | 61 | > 62 | 63 | $ $ECLIPSE_HOME/eclim -command java_classpath -p 64 | 65 | < 66 | 67 | 68 | *:JavaListInstalls* 69 | 70 | 71 | Viewing list of known JDKs/JREs installed 72 | ----------------------------------------- 73 | 74 | To view a list of all the JDKs/JREs that eclipse is aware of, eclim 75 | provides the command :JavaListInstalls. 76 | 77 | *:Jps* 78 | 79 | 80 | Jps (Process Status Tool) 81 | ========================= 82 | 83 | As of Java 1.5 (Java 5.0), the sun jdk started shipping with some 84 | useful tools for viewing information about running java processes. To 85 | provide quick and easy access to some of the information these 86 | commands provide, eclim exposes the command :Jps. 87 | 88 | Note: For more information on the jdk tools you may view the online 89 | documentation 90 | (http://docs.oracle.com/javase/6/docs/technotes/tools/#monitor). 91 | 92 | When invoked it will open a window containing information about the 93 | current processes and some links for viewing additional info 94 | (depending upon availability of required tools on your platform). 95 | 96 | Example content: 97 | 98 | [image] 99 | 100 | - Line 1 consists of the process id followed by either the class 101 | name the process was started with or the path to the jar file. 102 | - Lines 2 - 5 contains links that when you hit on, will open 103 | another window displaying the requested additional info. 104 | - Lines 7 - 13 is a foldable block which contains a list of all the 105 | arguments passed to the main method of the process. 106 | - Lines 15 - 21 is a foldable block which contains a list of all the 107 | arguments passed to the JVM. 108 | 109 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/compiler/eclim_ant.vim: -------------------------------------------------------------------------------- 1 | " Author: Eric Van Dewoestine 2 | " 3 | " Description: {{{ 4 | " Compiler for ant (enhancement to default ant compiler provided w/ vim). 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2020 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | if exists("current_compiler") 26 | finish 27 | endif 28 | let current_compiler = "eclim_ant" 29 | 30 | if !exists('g:EclimAntCompilerAdditionalErrorFormat') 31 | let g:EclimAntCompilerAdditionalErrorFormat = '' 32 | endif 33 | 34 | if !exists('g:EclimAntErrorFormat') 35 | let g:EclimAntErrorFormat = '' 36 | endif 37 | 38 | if !exists('g:EclimAntErrorsEnabled') 39 | let g:EclimAntErrorsEnabled = 0 40 | endif 41 | if g:EclimAntErrorsEnabled 42 | let g:EclimAntErrorFormat .= '\%A%f:%l:\ %m,' 43 | endif 44 | 45 | CompilerSet makeprg=ant\ -find\ build.xml\ $* 46 | 47 | " The two entries before the last one, are for catching ant build file names 48 | " and error line numbers. 49 | exec 'CompilerSet errorformat=' . 50 | \ '\%-G%.%#[javac]\ %.%#:\ warning:\ unmappable\ character\ %.%#,' . 51 | \ '\%A%.%#[javac]\ %f:%l:\ %m,' . 52 | \ '\%C%.%#[javac]\ symbol\ %#:\ %m,' . 53 | \ '\%-Z%.%#[javac]\ %p^,' . 54 | \ '\%A%.%#[javadoc]\ %f:%l:\ %m,' . 55 | \ '\%-C%.%#[javadoc]\ location:\ %.%#,' . 56 | \ '\%-C%.%#[javadoc]\ %#,' . 57 | \ '\%-Z%.%#[javadoc]\ %p^,' . 58 | \ '\%-G%.%#[javadoc]\ Note:%.%#,' . 59 | \ '\%-G%.%#[javadoc]\ javadoc:%.%#,' . 60 | \ '\%.%#[javadoc]\ %f:\ %m,' . 61 | \ '\%.%#[checkstyle]\ %f:%l:%c:\ %m,' . 62 | \ '\%.%#[checkstyle]\ %f:%l:\ %m,' . 63 | \ '\%.%#[java]\ [WARN]\ %f:%l:%c:\ %m,' . 64 | \ '\%.%#[java]\ [WARN]\ %f:%l:\ %m,' . 65 | \ '\%.%#[java]\ org\.apache\.jasper\.JasperException:\ file:%f(%l\\,%c)\ %m,' . 66 | \ '\%.%#[java]\ %f:%l:%c:\ %m,' . 67 | \ '\%.%#[java]\ %f:%l:\ %m,' . 68 | \ '\%+A%.%#[junit]\ %.%#Failures:\ %[%^0]%.%#\ Time\ elapsed:\ %.%#,' . 69 | \ '\%-Z%.%#[junit]\ Test\ %f\ FAILED,' . 70 | \ '\%+A%.%#[junit]\ %.%#Errors:\ %[%^0]%.%#\ Time\ elapsed:\ %.%#,' . 71 | \ '\%-Z%.%#[junit]\ Test\ %f\ FAILED,' . 72 | \ '\%+A%.%#[cactus]\ %.%#Failures:\ %[%^0]%.%#\ Time\ elapsed:\ %.%#,' . 73 | \ '\%-Z%.%#[cactus]\ Test\ %f\ FAILED,' . 74 | \ '\%+A%.%#[cactus]\ %.%#Errors:\ %[%^0]%.%#\ Time\ elapsed:\ %.%#,' . 75 | \ '\%-Z%.%#[cactus]\ Test\ %f\ FAILED,' . 76 | \ '\%E%.%#[scalac]\ %f:%l:\ error:\ %m,' . 77 | \ '\%-Z%.%#[scalac]\ %p^,' . 78 | \ '\%W%.%#[scalac]\ %f:%l:\ warning:\ %m,' . 79 | \ '\%-Z%.%#[scalac]\ %p^,' . 80 | \ '\%A%.%#[scalac]\ %f:%l:\ %m,' . 81 | \ '\%-Z%.%#[scalac]\ %p^,' . 82 | \ '\%.%#\ ERROR\ %.%#\ line\ %l\ in\ file:\ %.%f%.:\ %m,' . 83 | \ g:EclimAntCompilerAdditionalErrorFormat . 84 | \ '\%.%#[exec]\ %f:%l:%c:\ %m,' . 85 | \ '\%.%#[exec]\ %f:%l:\ %m,' . 86 | \ '\%f:%l:%c:\ %m,' . 87 | \ g:EclimAntErrorFormat . 88 | \ '\%-G%.%#' 89 | 90 | " vim:ft=vim:fdm=marker 91 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/logging.txt: -------------------------------------------------------------------------------- 1 | *vim-java-logging.html* 2 | 3 | Logging (log4j, etc) 4 | ******************** 5 | 6 | 7 | Auto import / initialize 8 | ======================== 9 | 10 | While editing a java source file, if you start to create a logging 11 | statement (log. or logger.), the logging plugin will attempt to 12 | perform the appropriate initialization (imports, static variable) for 13 | the configured logging implementation. 14 | 15 | Eclim provides a handful of templates for the most widely used 16 | implementations (commons-logging, slf4j, log4j, and jdk). However, if 17 | you happen to use an alternate logging framework, or perhaps a home 18 | grown framework, eclim also provides the means to supply a custom 19 | template. To utilize it, simply set the org.eclim.java.logging.impl 20 | setting to "custom" and add your template to 21 | ~/.eclim/resources/jdt/templates/logger.gst. Two variables will be 22 | supplied to your template: var, which is the logger instance variable, 23 | and class, which is the class name of the current class you are 24 | implementing. 25 | 26 | Here is an example which eclim uses for its logger implementation: 27 | 28 | > 29 | 30 | import org.eclim.logging.Logger; 31 | private static final Logger ${var} = Logger.getLogger(${class}.class); 32 | 33 | < 34 | 35 | 36 | After performing the necessary variable substitution, eclim will take 37 | any imports and insert them amongst your existing import statements. 38 | The remaining code will be inserted after your class definition. 39 | 40 | 41 | Configuration 42 | ------------- 43 | 44 | Vim Settings (|vim-settings|) 45 | 46 | *g:EclimLoggingDisabled* 47 | 48 | - g:EclimLoggingDisabled (Default: 0) - If set to a value greater 49 | than 0, then this plugin will be disabled. 50 | Eclim Settings (|vim-settings|) 51 | 52 | *org.eclim.java.logging.impl* 53 | 54 | - org.eclim.java.logging.impl (Default: "commons-logging") - 55 | Determines which logging implementation to use. 56 | Possible values include "commons-logging", "slf4j", "log4j", "jdk", 57 | and "custom". 58 | 59 | *org.eclim.java.logging.template* 60 | 61 | - org.eclim.java.logging.template (Default: 'logger.gst') - 62 | Determines the name of the template to use for the custom logger. 63 | The name must be a file name relative to 64 | ~/.eclim/resources/jdt/templates/. 65 | *log4j* 66 | 67 | 68 | Log4j 69 | ===== 70 | 71 | 72 | Validation 73 | ---------- 74 | 75 | When editing a log4j xml file eclim will default to validating the 76 | file when it is written. Any errors will be added to the current 77 | window's location list (:help location-list) and their corresponding 78 | line number noted via Vim's sign functionality. 79 | 80 | Eclim also combines the above validation with xml validation 81 | (vim-xml-index#xml-validation) to validate that the file is well 82 | formed. 83 | 84 | If you do not want your log4j files validated automatically when 85 | saved, you can set the |g:EclimLog4jValidate| variable described in 86 | the configuration section below. 87 | 88 | *:Validate_log4j* 89 | 90 | Whether or not auto validation has been enabled, eclim also exposes 91 | the command :Validate to manually execute the validation of the file. 92 | 93 | 94 | Configuration 95 | ------------- 96 | 97 | Vim Settings (|vim-settings|) 98 | 99 | *g:EclimLog4jValidate* 100 | 101 | - g:EclimLog4jValidate (Default: 1) - If set to 0, disables 102 | validation when saving the file. 103 | 104 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/autoload/eclim/client/python/nailgun.vim: -------------------------------------------------------------------------------- 1 | " Author: Anton Sharonov 2 | " Author: Eric Van Dewoestine 3 | " 4 | " Description: {{{ 5 | " 6 | " License: 7 | " 8 | " Copyright (C) 2005 - 2020 Eric Van Dewoestine 9 | " 10 | " This program is free software: you can redistribute it and/or modify 11 | " it under the terms of the GNU General Public License as published by 12 | " the Free Software Foundation, either version 3 of the License, or 13 | " (at your option) any later version. 14 | " 15 | " This program is distributed in the hope that it will be useful, 16 | " but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | " GNU General Public License for more details. 19 | " 20 | " You should have received a copy of the GNU General Public License 21 | " along with this program. If not, see . 22 | " 23 | " }}} 24 | 25 | " Script Variables {{{ 26 | let s:python_dir = expand(":h") 27 | " }}} 28 | 29 | " Execute(port, command) {{{ 30 | " Sends to the eclimd server command, supplied as argument string. 31 | " Returns server's respond. 32 | function! eclim#client#python#nailgun#Execute(port, command) 33 | call s:InitClient(a:port) 34 | let result_viml = "" 35 | let retcode = 0 36 | 37 | let begin = localtime() 38 | try 39 | python3 << PYTHONEOF 40 | command = vim.eval('a:command') 41 | (retcode, result) = client.send(command) 42 | vim.command('let retcode = %i' % retcode) 43 | vim.command("let result = '%s'" % result.replace("'", "''")) 44 | PYTHONEOF 45 | finally 46 | call eclim#util#EchoTrace( 47 | \ 'nailgun.py (port: ' . a:port . '): ' . a:command, localtime() - begin) 48 | endtry 49 | 50 | return [retcode, result] 51 | endfunction " }}} 52 | 53 | " Reconnect(port) {{{ 54 | " Does unconditional reconnect of the python_if 55 | " (useful to manual recover from errors in the python_if) 56 | function! eclim#client#python#nailgun#Reconnect(port) 57 | call s:InitClient(a:port) 58 | python3 << PYTHONEOF 59 | client.reconnect() 60 | PYTHONEOF 61 | endfunction " }}} 62 | 63 | " SetKeepAlive(port, value) {{{ 64 | " Updates the in runtime value of the keepAlive flag. 65 | function! eclim#client#python#nailgun#SetKeepAlive(port, value) 66 | call s:InitClient(a:port) 67 | python3 << PYTHONEOF 68 | client.keepAlive = int(vim.eval('a:value')) 69 | PYTHONEOF 70 | endfunction " }}} 71 | 72 | " GetKeepAlive(port) {{{ 73 | " Retrieves the value of the keepAlive flag. 74 | function! eclim#client#python#nailgun#GetKeepAlive(port) 75 | call s:InitClient(a:port) 76 | let result = 0 77 | python3 << PYTHONEOF 78 | vim.command("let result = %s" % client.keepAlive) 79 | PYTHONEOF 80 | return result 81 | endfunction " }}} 82 | 83 | " GetReconnectCounter(port) {{{ 84 | " Retrieves the value of the reconnect counter. 85 | function! eclim#client#python#nailgun#GetReconnectCounter(port) 86 | call s:InitClient(a:port) 87 | let result = 0 88 | python3 << PYTHONEOF 89 | vim.command("let result = %d" % client.reconnectCounter) 90 | PYTHONEOF 91 | return result 92 | endfunction " }}} 93 | 94 | " s:InitClient(port) {{{ 95 | " Initializes the python interface to the nailgun server. 96 | function! s:InitClient(port) 97 | python3 << PYTHONEOF 98 | if 'clients' not in vars(): 99 | import sys, vim 100 | sys.path.append(vim.eval('s:python_dir')) 101 | import nailgun 102 | 103 | clients = {} 104 | 105 | port = int(vim.eval('a:port')) 106 | if port not in clients: 107 | clients[port] = nailgun.Nailgun( 108 | port=port, 109 | keepAlive=vim.eval('g:EclimNailgunKeepAlive'), 110 | ) 111 | client = clients[port] 112 | PYTHONEOF 113 | endfunction " }}} 114 | 115 | " vim:ft=vim:fdm=marker 116 | -------------------------------------------------------------------------------- /eclim/doc/vim/java/javadoc.txt: -------------------------------------------------------------------------------- 1 | *vim-java-javadoc.html* 2 | 3 | Javadoc Support 4 | *************** 5 | 6 | *:JavaDocComment* 7 | 8 | 9 | Commenting 10 | ========== 11 | 12 | Eclim provides the :JavaDocComment command which will add or update 13 | the javadoc comments for the element under the cursor. 14 | 15 | *:JavaDocPreview* 16 | 17 | 18 | Viewing 19 | ======= 20 | 21 | While editing java code, if you'd like to view the javadoc of the 22 | element under the cursor, you can run the :JavaDocPreview command 23 | which will open vim's preview window with the element's javadoc 24 | content. In the preview window any links to classes, methods, etc. in 25 | the javadoc will be highlighted and you can follow those links by 26 | hitting on the link. You can also use to navigate back to 27 | the previous javadoc preview and to navigate forward. 28 | 29 | *:JavaDocSearch* 30 | 31 | 32 | Searching 33 | ========= 34 | 35 | Eclim supports searching of javadocs just like you would search the 36 | source code (|vim-java-search|). 37 | 38 | The only difference is that you use :JavaDocSearch instead of 39 | :JavaSearch. 40 | 41 | The results will be displayed in a window and you can simply hit 42 | on an entry to open it using the browser you configured via 43 | g:EclimBrowser (|vim-core-eclim#g:EclimBrowser|). 44 | 45 | The locations of the javadocs are determined via your Eclipse 46 | project's .classpath file. For each library entry you can define a 47 | javadoc attribute that points to the base url of the javadoc (http, 48 | file, etc). 49 | 50 | > 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | < 59 | 60 | 61 | If you would like to set the javadoc url for your project's source 62 | files, you will instead need to set the 63 | org.eclipse.jdt.ui.project_javadoc_location option via 64 | |:ProjectSettings|. Also note that the javadocs for your source files 65 | are not generated automatically, so if you would like to use 66 | :JavaDocSearch to open your project's javadocs, you will first need to 67 | generate those javadocs as described in the next section. 68 | 69 | *:Javadoc* 70 | 71 | 72 | Executing javadoc 73 | ================= 74 | 75 | To run the javadoc utility on your project's source code, you may use 76 | the :Javadoc command, which with no arguments will execute javadoc 77 | against all your project's source code (as specified by any optional 78 | settings described below). 79 | 80 | If you wish to run javadoc only against one or more files, you can 81 | supply the project relative paths as arguments to the :Javadoc command 82 | and only those files will be used. 83 | 84 | Note: Please note that this command is not intended to be a full 85 | replacement for javadoc support provided by more comprehensive build 86 | tools like ant or maven. 87 | 88 | 89 | Configuration 90 | ============= 91 | 92 | Eclim Settings (|vim-settings|) 93 | 94 | - org.eclim.user.name - Used as the name portion of the author tag. 95 | Consult the settings page (|vim-settings|) for more info. 96 | - org.eclim.user.email - Used as the email portion of the author 97 | tag. Consult the settings page (|vim-settings|) for more info. 98 | - org.eclim.java.doc.dest (Default: doc) - The project relative 99 | directory where the javadocs with be written to. 100 | - org.eclim.java.doc.packagenames - Optional space separated list of 101 | package names to run javadoc against. 102 | - org.eclim.java.doc.sourcepath - The project relative javadoc 103 | sourcepath to use. This should be a space separated list of project 104 | relative source directories which you want javadoc to be executed 105 | against. When unset, all your configured source directories will be 106 | used. 107 | - org.eclipse.jdt.ui.project_javadoc_location - URL where your 108 | project's javadocs can be found. 109 | 110 | vim:ft=eclimhelp -------------------------------------------------------------------------------- /eclim/doc/vim/html/index.txt: -------------------------------------------------------------------------------- 1 | *vim-html-index.html* 2 | 3 | Html / Css 4 | ********** 5 | 6 | *html* 7 | 8 | 9 | Html 10 | ==== 11 | 12 | 13 | Code Completion 14 | --------------- 15 | 16 | Html code completion uses the standard Vim code completion mechanism 17 | (|vim-code_completion|) like so: 18 | 19 | > 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 88 | 89 | let g:EclimFileTypeValidate = 0 90 | 91 | < 92 | 93 | 94 | - g:EclimValidateSortResults (Default: 'occurrence') - If set to 95 | 'severity', the validation results will be sorted by severity 96 | (errors > warnings > info > etc.) 97 | *css* 98 | 99 | 100 | Css 101 | === 102 | 103 | 104 | Code Completion 105 | --------------- 106 | 107 | Css code completion uses the standard Vim code completion mechanism 108 | (|vim-code_completion|) like so: 109 | 110 | > 111 | 112 | bo 113 | 114 | body { 115 | font- 116 | 117 | body { 118 | font-family: sa 119 | 120 | body { 121 | font-family: sans-serif; 122 | ... 123 | 124 | < 125 | 126 | 127 | 128 | Validation 129 | ---------- 130 | 131 | When editing a css file eclim will default to validating the file when 132 | it is written. Any errors will be added to the current window's 133 | location list (:help location-list) and their corresponding line 134 | number noted via Vim's sign functionality. 135 | 136 | If you do not want your css files validated automatically when saved, 137 | you can set the |g:EclimCssValidate| variable described in the 138 | configuration section below. 139 | 140 | *:Validate_css* 141 | 142 | Whether or not auto validation has been enabled, eclim also exposes 143 | the command :Validate to manually execute the validation of the file. 144 | 145 | 146 | Configuration 147 | ------------- 148 | 149 | Vim Settings (|vim-settings|) 150 | 151 | *g:EclimCssValidate* 152 | 153 | - g:EclimCssValidate (Default: 1) - If set to 0, disables validation 154 | when saving the file. 155 | - g:EclimValidateSortResults (Default: 'occurrence') - If set to 156 | 'severity', the validation results will be sorted by severity 157 | (errors > warnings > info > etc.) 158 | 159 | vim:ft=eclimhelp --------------------------------------------------------------------------------