b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

自动补全_droid自动补全_excel自动补全

电脑杂谈  发布时间:2016-12-19 05:04:16  来源:网络整理
自动补全

一直以来,就想让我的vim支持java的自动补全,结果老是补不全,就是没有安装齐全。自动补全我总是喜欢到网上东找找,西找找,可是感觉都不对路。本来不想搞了的,今天就想,为何不到官网上去试试。结果,果然是成功了的。。。。

下面是官网的安装指南:

install details

1. Unzip javacomplete.zip to a directory of 'runtimepath', e.g.

$HOME/.vim (unix/linux), $VIM/vimfiles (windows).

> unzip javacomplete.zip -d ~/.vim

To update Vim help tags, run vim and run command:

:helptags $HOME/.vim/doc

or

:helptags $VIM/vimfiles/doc

NOTE: javacomplete.vim, java_parser.vim and Reflection.java should be in one

autoload directory of 'runtimepath'.

javacomplete.txt should be in one doc directory of 'runtimepath'.

2. Set 'omnifunc' option. e.g.

:setlocal omnifunc=javacomplete#Complete

Or, use autocmd:

:" Only do this part when compiled with support for autocommands.

:if has("autocmd")

: autocmd Filetype java setlocal omnifunc=javacomplete#Complete

:endif

You can add this command to your .vimrc or _vimrc.

3. Set 'completefunc' option to show parameters information IF YOU LIKE. e.g.

:setlocal completefunc=javacomplete#CompleteParamsInfo

You can map as follows for better display:

:inoremap <buffer> <C-X><C-U> <C-X><C-U><C-P>

:inoremap <buffer> <C-S-Space> <C-X><C-U><C-P>

4. Reflection.java will be automatcally compiled and placed to $HOME when you

use first time. Assure that Reflection.java is in the same directory with

javacomplete.vim to be searched in autoload subdirectory of &rtp.

If no Reflection.class is generated, check that you have the write permission

in $HOME directory.

If a previous Reflection.java is not compatible with the new version

javacomplete.vim, please compile Reflection.java manually.


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-23053-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...