**neocomplcache**
=================
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.
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_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
let g:neocomplcache_omni_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
let g:neocomplcache_omni_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
" For perlomni.vim setting.
" https://github.com/c9s/perlomni.vim
let g:neocomplcache_omni_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
gvim 7.4 便携版 (1641个子文件)
ccfilter.1 2KB
shtags.1 2KB
_vimrc 7KB
_vimrc~ 2KB
mve.awk 507B
tutor.bar 41KB
evim.bat 985B
gvimdiff.bat 985B
gview.bat 985B
gvim.bat 977B
vimtutor.bat 686B
view.bat 660B
vimdiff.bat 660B
vim.bat 656B
less.bat 298B
tutor.zh.big5 25KB
xcmdsrv_client.c 14KB
ccfilter.c 9KB
blink.c 485B
tutor.ca 27KB
Powerline_default_default_unicode.cache 25KB
Powerline_default_default_fancy.cache 25KB
Powerline_default_default_compatible.cache 25KB
Powerline_default_default_solarized.cache 2KB
Powerline_default_default_solarized256.cache 2KB
vim_vs_net.cmd 822B
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
main.cpp 482B
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
dvorak 3KB
tutor.el 30KB
tutor.eo 35KB
tutor.es 28KB
tutor.ja.euc 33KB
tutor.zh.euc 30KB
tutor.ko.euc 27KB
gvim.exe 2.08MB
vim.exe 1.75MB
install.exe 119KB
uninstal.exe 91KB
xxd.exe 69KB
diff.exe 67KB
vimrun.exe 59KB
uninstall-gui.exe 36KB
fontpatcher 8KB
tutor.fr 39KB
.gitignore 17B
singleton.h 1KB
tutor.hr 34KB
template.html 295B
tutor.hu 27KB
tutor.tr.iso9 28KB
tutor.it 36KB
template.java 226B
acp.jax 14KB
template.jsp 401B
lib.make 627B
exe.make 316B
Makefile 3KB
README.md 5KB
vim.mo 167KB
vim.mo 167KB
vim.mo 165KB
vim.mo 165KB
vim.mo 163KB
vim.mo 162KB
vim.mo 160KB
vim.mo 159KB
vim.mo 158KB
vim.mo 155KB
vim.mo 151KB
vim.mo 151KB
vim.mo 150KB
vim.mo 148KB
vim.mo 148KB
vim.mo 143KB
vim.mo 140KB
vim.mo 139KB
vim.mo 139KB
共 1641 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
- taylor_gc2013-12-05配置的效果很好。文字显示很舒服
- hiphope2014-06-24字体很大。行号颜色太显眼
- ggll11272014-11-05插件很多,学习中,感谢分享
- babyhu2014-12-02插件不算多,但都是我想要的插件。想引号,括号对齐,emmet插件,目录树,我喜欢。
csywashing
- 粉丝: 3
- 资源: 53
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功