**neocomplcache**
=================
Note: It is not maintained well. You should use neocomplete instead.
https://github.com/Shougo/neocomplete.vim
Description
-----------
neocomplcache is the abbreviation of "neo-completion with cache". It
provides keyword completion system by maintaining a cache of keywords in the
current buffer. neocomplcache could be customized easily and has a lot more
features than the Vim's standard completion feature.
If you use Vim 7.3.885 or above with if\_lua feature, you should use
neocomplete. It is faster than neocomplcache.
https://github.com/Shougo/neocomplete.vim
Installation
============
* Extract the file and put files in your Vim directory
(usually ~/.vim/ or Program Files/Vim/vimfiles on Windows).
* Execute `|:NeoComplCacheEnable|` command or
`let g:neocomplcache_enable_at_startup = 1`
in your `.vimrc`. Not in `.gvimrc`(`_gvimrc`)!
Caution
-------
Because all variable names were changed in neocomplcache Ver.5, it is not
backwards compatible. If you want to upgrade, you should use the following
script from Mr.thinca.
http://gist.github.com/422503
Snippets feature(snippets\_complete source) was split from Ver.7.
If you used it, please install neosnippet source manually.
https://github.com/Shougo/neosnippet
Screen shots
============
Original filename completion.
-----------
![Original filename completion.](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1O5_bOQ2I/AAAAAAAAADE/vHf9Xg_mrTI/s1600/filename_complete.png)
Omni completion.
----------------
![Omni completion.](http://2.bp.blogspot.com/_ci2yBnqzJgM/TD1PTolkTBI/AAAAAAAAADU/knJ3eniuHWI/s1600/omni_complete.png)
Completion with vimshell(http://github.com/Shougo/vimshell).
------------------------------------------------------------
![Completion with vimshell(http://github.com/Shougo/vimshell).](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1PLfdQrwI/AAAAAAAAADM/2pSFRTHwYOY/s1600/neocomplcache_with_vimshell.png)
Vim completion
------------------------------------------------------------
![Vim completion.](http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1PfKTlwnI/AAAAAAAAADs/nOGWTRLuae8/s1600/vim_complete.png)
Setting examples
```vim
"Note: This option must set it in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)!
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplcache.
let g:neocomplcache_enable_at_startup = 1
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
" Enable heavy features.
" Use camel case completion.
"let g:neocomplcache_enable_camel_case_completion = 1
" Use underbar completion.
"let g:neocomplcache_enable_underbar_completion = 1
" Define dictionary.
let g:neocomplcache_dictionary_filetype_lists = {
\ 'default' : '',
\ 'vimshell' : $HOME.'/.vimshell_hist',
\ 'scheme' : $HOME.'/.gosh_completions'
\ }
" Define keyword.
if !exists('g:neocomplcache_keyword_patterns')
let g:neocomplcache_keyword_patterns = {}
endif
let g:neocomplcache_keyword_patterns['default'] = '\h\w*'
" Plugin key-mappings.
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-l> neocomplcache#complete_common_string()
" Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
return neocomplcache#smart_close_popup() . "\<CR>"
" For no inserting <CR> key.
"return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
endfunction
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-y> neocomplcache#close_popup()
inoremap <expr><C-e> neocomplcache#cancel_popup()
" Close popup by <Space>.
"inoremap <expr><Space> pumvisible() ? neocomplcache#close_popup() : "\<Space>"
" For cursor moving in insert mode(Not recommended)
"inoremap <expr><Left> neocomplcache#close_popup() . "\<Left>"
"inoremap <expr><Right> neocomplcache#close_popup() . "\<Right>"
"inoremap <expr><Up> neocomplcache#close_popup() . "\<Up>"
"inoremap <expr><Down> neocomplcache#close_popup() . "\<Down>"
" Or set this.
"let g:neocomplcache_enable_cursor_hold_i = 1
" Or set this.
"let g:neocomplcache_enable_insert_char_pre = 1
" AutoComplPop like behavior.
"let g:neocomplcache_enable_auto_select = 1
" Shell like behavior(not recommended).
"set completeopt+=longest
"let g:neocomplcache_enable_auto_select = 1
"let g:neocomplcache_disable_auto_complete = 1
"inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<C-x>\<C-u>"
" Enable omni completion.
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
" Enable heavy omni completion.
if !exists('g:neocomplcache_force_omni_patterns')
let g:neocomplcache_force_omni_patterns = {}
endif
let g:neocomplcache_force_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
let g:neocomplcache_force_omni_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
let g:neocomplcache_force_omni_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
" For perlomni.vim setting.
" https://github.com/c9s/perlomni.vim
let g:neocomplcache_force_omni_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
下载gvim 7.3 (7.4x会报错,但也可以正常使用) 安装。然后解压本文件,覆盖到gvim安装目录 基础操作: NERDTree : F5 关闭窗口 : F6 保存 :ctrl+s copy : ctrl+c 粘贴 :ctrl+v 默认配色方案 :molokai 已安装NERDTree和其它经典vim插件 能很好的支持php,javascript,jquery,css,html5
资源推荐
资源详情
资源评论
收起资源包目录
GVIM配置文件(php+jquery版自已多年使用的配制,菜鸟也能很好使用) (2000个子文件)
ccfilter.1 2KB
shtags.1 2KB
_vimrc 4KB
mve.awk 507B
vimtutor.bat 2KB
tutor.zh.big5 25KB
tutor.bj 41KB
xcmdsrv_client.c 14KB
ccfilter.c 9KB
blink.c 485B
tutor.ca 27KB
vim_vs_net.cmd 820B
tutor.pl.cp1250 34KB
tutor.hr.cp1250 34KB
tutor.sk.cp1250 34KB
tutor.hu.cp1250 27KB
tutor.cs.cp1250 26KB
tutor.ru.cp1251 29KB
tutor.el.cp737 30KB
tutor.cs 26KB
tutor.de 39KB
commands.dict 20KB
options.dict 18KB
command_prototypes.dict 12KB
command_completions.dict 9KB
features.dict 8KB
functions.dict 6KB
autocmds.dict 4KB
variables.dict 4KB
mappings.dict 2KB
command_args.dict 2KB
logtalk.dict 2KB
command_replaces.dict 624B
libintl.dll 68KB
gvimext.dll 66KB
lpk.dll 45KB
gvimfullscreen.dll 42KB
.DS_Store 6KB
.DS_Store 6KB
dvorak 3KB
tutor.el 30KB
tutor.eo 35KB
tutor.es 28KB
tutor.ja.euc 33KB
tutor.ko.euc 27KB
tutor.zh.euc 25KB
gvim.exe 1.9MB
vim.exe 1.65MB
install.exe 89KB
xxd.exe 69KB
diff.exe 67KB
uninstal.exe 57KB
uninstall-gui.exe 35KB
vimrun.exe 30KB
tutor.fr 39KB
.gitignore 36B
.gitignore 16B
.hgtags 691B
tutor.hr 34KB
tutor.hu 27KB
tutor.tr.iso9 28KB
tutor.it 36KB
acp.jax 14KB
Makefile 11KB
Makefile 2KB
README.markdown 4KB
CHANGES.markdown 509B
README.md 6KB
README.md 3KB
config.mk 14B
README.mkd 11KB
vim.mo 159KB
vim.mo 159KB
vim.mo 155KB
vim.mo 154KB
vim.mo 154KB
vim.mo 152KB
vim.mo 152KB
vim.mo 152KB
vim.mo 152KB
vim.mo 150KB
vim.mo 150KB
vim.mo 148KB
vim.mo 148KB
vim.mo 145KB
vim.mo 141KB
vim.mo 140KB
vim.mo 139KB
vim.mo 139KB
vim.mo 139KB
vim.mo 136KB
vim.mo 132KB
vim.mo 123KB
vim.mo 122KB
vim.mo 119KB
vim.mo 116KB
vim.mo 107KB
vim.mo 104KB
vim.mo 8KB
tutor.nb 35KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
snnttao
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- DatabaseWatermarkingBasedonTextFormat
- -移动通信-网络课程设计与研究
- 基于Python的PCA人脸识别算法的原理及实现代码+文档详解.zip
- 甘肃移动全业务工程建设项目管理流程优化研究
- 549springboot + vue 民宿管理平台.zip (可运行源码+数据库文件+文档)
- ZArchiver.Pro_0.9.5.apk
- vmware环境配置.mp4
- 548springboot + vue 大学生社团活动平台.zip(可运行源码+数据库文件+文档)
- 微信小程序 辩论倒计时小程序源码 作业设计demo 计算机专业参考
- 深入探究文件IO,嵌入式Linux
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功