wsdjeg / .SpaceVim.d

My dotfiles for Archlinux and Windows
1.44k stars 133 forks source link

How to support maven project #30

Closed hacpai closed 8 years ago

hacpai commented 8 years ago
  1. Download *.jar automatically
  2. Jump jar source
wsdjeg commented 8 years ago

download jars is the work of maven,you can run 'mvn compile' in terminal.and maven do not support autodownload src.you need download your self.and add tags file

wsdjeg commented 8 years ago

and before answer your question,I need know what your os is,win or linux?

hacpai commented 8 years ago

@wsdjeg OS is Mac.

I have a question, how to add tags file?

wsdjeg commented 8 years ago

you need install ctags,and go to the path of jdk src. run

cd java  #here only generate tags for java.*,if you need javax.do same thing in that dir
ctags -R

then add set tag+=path-to-tag-file into your vimrc

hacpai commented 8 years ago

@wsdjeg I add set tag+=path-to-tag-file into ~/.vim/vimrc, like this:

" Note: Skip initialization for vim-tiny or vim-small.
 if 1
    execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'
    set tag+=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/tags
endif

but it didn't work.

hacpai commented 8 years ago

@wsdjeg I unzip src.zip and run ctags -R, then mv tags to ~/others/openjdksrc/java

It works. Thank you for help.

wsdjeg commented 8 years ago

no problem,nice to hear that.so can be closed?

hacpai commented 8 years ago

@wsdjeg Ok, another issue can be closed too.