Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add eclim usage.

  • Loading branch information...
commit f22b338848e522feeb22cedb19b7de5fc4d65233 1 parent 551a143
@utopiazh authored
Showing with 207 additions and 2 deletions.
  1. +112 −0 eclim.md
  2. +66 −0 vimrc/.vim/doc/tags
  3. +29 −2 vimrc/.vimrc
View
112 eclim.md
@@ -0,0 +1,112 @@
+## Eclim start
+
+ $ECLIPSE_HOME/eclimd >$ECLIPSE_HOME/eclim.log 2>&1 &
+
+## Project
+
+:ProjectsTree
+
+:ProjectTab search-databus
+
+## Locate File
+
+:LocateFile Product.java
+
+:LocateBuffer Product.java
+
+## History
+
+:History
+
+:HistoryDiffNext
+
+:HistoryDiffPrev
+
+## Coding
+
+__AutoComplete__
+
+Autocomplete with key:
+
+- <c-x><c-u>
+
+- <c-p>
+
+- <c-n>
+
+Autocomplete with tab:
+
+- install SuperTab && AutoComplPop
+
+ cd ~/.vim/bundle
+
+ git clone git@github.com:vim-scripts/AutoComplPop.git
+
+ git clone git@github.com:ervandew/supertab.git
+
+__Rename__
+
+:JavaRename <new-name>
+
+__Move__
+
+:JavaMove <new-package-name>
+
+__Constructor__
+
+:JavaConstructor : create constructor
+
+__GetterSetter__
+
+:JavaSet
+
+:JavaGet
+
+:JavaGetSet
+
+__Override/Impl__
+
+:JavaImpl
+
+__Delegate__
+
+:JavaDelegate: generate delegate methods for variables.
+
+__Import__
+
+:JavaImport import the class under the cursor
+
+:JavaImportOrganize
+
+__Search__
+
+Search the element under the cursor
+
+:JavaSearch
+
+:JavaSearchContext
+
+__Hierarchy__
+
+:JavaHierarchy
+
+## validate
+
+:JavaCorrect
+
+:CheckStyle
+
+
+:Validate_webxml: validate web.xml
+
+## Testing
+
+:JUnit org.test.MyTest
+
+:JUnit % : run current file as unittests
+
+:JUnit * : run all unittests
+
+:JUnit **/tests/*Test : run all unittests that matches the pattern
+
+*:JUnitFindTest*: find test methods for methods in source class
View
66 vimrc/.vim/doc/tags
@@ -23,6 +23,29 @@
'Tlist_Use_SingleClick' taglist.txt /*'Tlist_Use_SingleClick'*
'Tlist_WinHeight' taglist.txt /*'Tlist_WinHeight'*
'Tlist_WinWidth' taglist.txt /*'Tlist_WinWidth'*
+'g:miniBufExplCheckDupeBufs' minibufexpl.txt /*'g:miniBufExplCheckDupeBufs'*
+'g:miniBufExplCloseOnSelect' minibufexpl.txt /*'g:miniBufExplCloseOnSelect'*
+'g:miniBufExplForceSyntaxEnable' minibufexpl.txt /*'g:miniBufExplForceSyntaxEnable'*
+'g:miniBufExplMapCTabSwitchBufs' minibufexpl.txt /*'g:miniBufExplMapCTabSwitchBufs'*
+'g:miniBufExplMapCTabSwitchWindows' minibufexpl.txt /*'g:miniBufExplMapCTabSwitchWindows'*
+'g:miniBufExplMapWindowNavArrows' minibufexpl.txt /*'g:miniBufExplMapWindowNavArrows'*
+'g:miniBufExplMapWindowNavVim' minibufexpl.txt /*'g:miniBufExplMapWindowNavVim'*
+'g:miniBufExplMaxHeight' minibufexpl.txt /*'g:miniBufExplMaxHeight'*
+'g:miniBufExplMaxSize' minibufexpl.txt /*'g:miniBufExplMaxSize'*
+'g:miniBufExplMinHeight' minibufexpl.txt /*'g:miniBufExplMinHeight'*
+'g:miniBufExplMinSize' minibufexpl.txt /*'g:miniBufExplMinSize'*
+'g:miniBufExplModSelTarget' minibufexpl.txt /*'g:miniBufExplModSelTarget'*
+'g:miniBufExplShowBufNumbers' minibufexpl.txt /*'g:miniBufExplShowBufNumbers'*
+'g:miniBufExplSplitBelow' minibufexpl.txt /*'g:miniBufExplSplitBelow'*
+'g:miniBufExplSplitToEdge' minibufexpl.txt /*'g:miniBufExplSplitToEdge'*
+'g:miniBufExplUseSingleClick' minibufexpl.txt /*'g:miniBufExplUseSingleClick'*
+'g:miniBufExplVSplit' minibufexpl.txt /*'g:miniBufExplVSplit'*
+'g:miniBufExplorerDebugLevel' minibufexpl.txt /*'g:miniBufExplorerDebugLevel'*
+'g:miniBufExplorerDebugMode' minibufexpl.txt /*'g:miniBufExplorerDebugMode'*
+'g:miniBufExplorerMoreThanOne' minibufexpl.txt /*'g:miniBufExplorerMoreThanOne'*
+:CMiniBufExplorer minibufexpl.txt /*:CMiniBufExplorer*
+:MiniBufExplorer minibufexpl.txt /*:MiniBufExplorer*
+:TMiniBufExplorer minibufexpl.txt /*:TMiniBufExplorer*
:TlistAddFiles taglist.txt /*:TlistAddFiles*
:TlistAddFilesRecursive taglist.txt /*:TlistAddFilesRecursive*
:TlistClose taglist.txt /*:TlistClose*
@@ -39,10 +62,53 @@
:TlistUndebug taglist.txt /*:TlistUndebug*
:TlistUnlock taglist.txt /*:TlistUnlock*
:TlistUpdate taglist.txt /*:TlistUpdate*
+:UMiniBufExplorer minibufexpl.txt /*:UMiniBufExplorer*
+MiniBufExpl minibufexpl.txt /*MiniBufExpl*
+MiniBufExpl-contents minibufexpl.txt /*MiniBufExpl-contents*
+MiniBufExplAbout minibufexpl.txt /*MiniBufExplAbout*
+MiniBufExplAutoOpen minibufexpl.txt /*MiniBufExplAutoOpen*
+MiniBufExplChangelog minibufexpl.txt /*MiniBufExplChangelog*
+MiniBufExplCommands minibufexpl.txt /*MiniBufExplCommands*
+MiniBufExplDebugging minibufexpl.txt /*MiniBufExplDebugging*
+MiniBufExplHighlighting minibufexpl.txt /*MiniBufExplHighlighting*
+MiniBufExplInstall minibufexpl.txt /*MiniBufExplInstall*
+MiniBufExplKeyboard minibufexpl.txt /*MiniBufExplKeyboard*
+MiniBufExplKnownIssues minibufexpl.txt /*MiniBufExplKnownIssues*
+MiniBufExplMappings minibufexpl.txt /*MiniBufExplMappings*
+MiniBufExplMisc minibufexpl.txt /*MiniBufExplMisc*
+MiniBufExplOptions minibufexpl.txt /*MiniBufExplOptions*
+MiniBufExplSplits minibufexpl.txt /*MiniBufExplSplits*
+MiniBufExplTodo minibufexpl.txt /*MiniBufExplTodo*
+MiniBufExplWindowSize minibufexpl.txt /*MiniBufExplWindowSize*
Tlist_Get_Tag_Prototype_By_Line() taglist.txt /*Tlist_Get_Tag_Prototype_By_Line()*
Tlist_Get_Tagname_By_Line() taglist.txt /*Tlist_Get_Tagname_By_Line()*
Tlist_Set_App() taglist.txt /*Tlist_Set_App()*
Tlist_Update_File_Tags() taglist.txt /*Tlist_Update_File_Tags()*
+java-parser-history javacomplete.txt /*java-parser-history*
+javacomplete-ast javacomplete.txt /*javacomplete-ast*
+javacomplete-commands javacomplete.txt /*javacomplete-commands*
+javacomplete-compiler javacomplete.txt /*javacomplete-compiler*
+javacomplete-constants javacomplete.txt /*javacomplete-constants*
+javacomplete-download javacomplete.txt /*javacomplete-download*
+javacomplete-faq javacomplete.txt /*javacomplete-faq*
+javacomplete-features javacomplete.txt /*javacomplete-features*
+javacomplete-functions javacomplete.txt /*javacomplete-functions*
+javacomplete-history javacomplete.txt /*javacomplete-history*
+javacomplete-install javacomplete.txt /*javacomplete-install*
+javacomplete-kindletter javacomplete.txt /*javacomplete-kindletter*
+javacomplete-launcher javacomplete.txt /*javacomplete-launcher*
+javacomplete-limitations javacomplete.txt /*javacomplete-limitations*
+javacomplete-options javacomplete.txt /*javacomplete-options*
+javacomplete-overview javacomplete.txt /*javacomplete-overview*
+javacomplete-parser javacomplete.txt /*javacomplete-parser*
+javacomplete-reflection javacomplete.txt /*javacomplete-reflection*
+javacomplete-requirements javacomplete.txt /*javacomplete-requirements*
+javacomplete-sample javacomplete.txt /*javacomplete-sample*
+javacomplete-thanks javacomplete.txt /*javacomplete-thanks*
+javacomplete-todo javacomplete.txt /*javacomplete-todo*
+javacomplete-usage javacomplete.txt /*javacomplete-usage*
+javacomplete.txt javacomplete.txt /*javacomplete.txt*
+minibufexpl.txt minibufexpl.txt /*minibufexpl.txt*
taglist-commands taglist.txt /*taglist-commands*
taglist-debug taglist.txt /*taglist-debug*
taglist-extend taglist.txt /*taglist-extend*
View
31 vimrc/.vimrc
@@ -1,4 +1,10 @@
+set nocompatible
+
syntax on
+
+"set paste
+"set smartindent
+"
set ai "autoindent
set sm "showmatch
@@ -14,6 +20,9 @@ set backspace=indent,eol,start
set incsearch
set hlsearch
+
+" show cursor location
+set ruler
set cursorline "show underscore line at cursor
set number "show line number
@@ -21,8 +30,6 @@ set autoread "autoreload when file is changed
set fileencoding=utf-8
-set foldmethod=syntax
-
colorschem desert
let java_highlight_all=1
@@ -38,4 +45,24 @@ endif
" Plugin
call pathogen#infect()
+"enable code folding
+set foldenable
+"set foldmethod=indent
+set foldmethod=syntax
+set foldlevel=100
+"set foldopen-=search
+"set foldopen-=undo
+
+set showcmd
+set showmode
+
+" Update javacompelet
+" Only do this part when compiled with support for autocommands.
+if has("autocmd")
+ autocmd Filetype java setlocal omnifunc=javacomplete#Complete
+endif
+
+setlocal completefunc=javacomplete#CompleteParamsInfo
+inoremap <buffer> <C-X><C-U> <C-X><C-U><C-P>
+inoremap <buffer> <C-S-Space> <C-X><C-U><C-P>
Please sign in to comment.
Something went wrong with that request. Please try again.