Although currently engaged in. net, there is still a kind of dilemma for Java. Therefore, we plan to configure a Vim development environment for Java first.
1. Install nerdtree
If you read the first few articles in this series, then you don't need to say it from http://www.vim.org/scripts/script.php? Script_id = 1658 download the nerdtree plug-in, and then compare the plugin and Doc ~ Merge the folders with the same name under the vim/vim73/directory. Add the following lines of nerdtree configuration code to _ vimrc:
" NERDTree pluginmap <F2> :NERDTreeMirror<CR>map <F3> :NERDTreeToggle<CR>
2. Install javabrowser
A. From http://www.vim.org/scripts/script.php? Script_id = 588 download the javabrowser plug-in. Then decompress the obtained plug-in folder and ~ /Vim/vim73/merge folders of the same name under the Directory
Bits copy tagindicator.xpmand tagindicator.bmp under the extracted pixmaps file ~ The pixmaps folder in the/Vim/vim73/directory. If this folder is not created (this step is optional)
C. Set javabrowser_ctags_cmd to point to ctags and add the following code to _ vimrc (set the value to your own ctags path, which is similar to/usr/bin/ctags in Linux ):
let JavaBrowser_Ctags_Cmd = 'E:\Vim\vim73\ctags'
D. This step is optional. Add the following code to _ vimrc:
let Javabrowser_Use_Icon = 1let JavaBrowser_Use_Highlight_Tag = 1
E. Bind a shortcut key. If no shortcut key is bound, enter javabro in command mode to display the Resource Tree. Add the following code to _ vimrc (do not conflict with other existing buttons ):
map <F11> :JavaBrowser<CR> imap <F11> <ESC><F11>
For example, if Vim is configured, the red box marks the Java browser area:
3. Install the vjde plug-in
I tried the javacomplete plug-in for a few hours but failed. I finally gave up and found the more powerful vjde plug-in.
From http://www.vim.org/scripts/script.php? Script_id = 1213 download and decompress the package ~ The/Vim/vim73/directory combines folders of the same name. Restart vim.
The default auto-completion shortcut isCTRL + x, uFor example, (use the new color scheme Freya and set the new font)
4. Auto-complete plug-in autopairs Installation
From http://www.vim.org/scripts/script.php? Script_id = 3599 download the autopairs plug-in and decompress auto_pairs.vim ~ /Vim/vim73/plugin/directory (Alt + P can disable this plug-in). The effect is as follows:
More detailed instructions can refer to the http://www.aitilife.com/2012/07/28/vim-auto-pairs-plugin
Other content developed by Java in VIM will be added later ~~~