Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

やっぱりネオコンに戻した。重いのはinclude_completionのせいだったので無効にした

  • Loading branch information...
commit a1c022623f1bff4cca4a60486e97fa2991d652ba 1 parent 61d21bf
@yuroyoro authored
View
4 .vimrc.bundle
@@ -84,10 +84,10 @@ call vundle#rc()
" Completion {{{
" 補完 autocomplpop.vim : insertmodeで自動で補完をpopup
- Bundle 'AutoComplPop'
+ " Bundle 'AutoComplPop'
" 補完 neocomplcache.vim : 究極のVim的補完環境
- " Bundle 'Shougo/neocomplcache'
+ Bundle 'Shougo/neocomplcache'
" rubyでrequire先を補完する
" Bundle 'ujihisa/neco-ruby'
View
4 .vimrc.completion
@@ -14,9 +14,9 @@ cnoremap <C-n> <Down>
cnoremap <Down> <C-n>
" 補完にneocomplcacheを使う
-" source ~/dotfiles/.vimrc.completion.neocomplcache
+source ~/dotfiles/.vimrc.completion.neocomplcache
" 補完にAutoComplPopを使う
-source ~/dotfiles/.vimrc.completion.autocomplpop
+" source ~/dotfiles/.vimrc.completion.autocomplpop
View
45 .vimrc.completion.neocomplcache
@@ -77,6 +77,9 @@ inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-x><C-o> &filetype == 'vim' ? "\<C-x><C-v><C-p>" : neocomplcache#manual_omni_complete()
+" buffer開いたらneoconでcache
+autocmd BufRead :NeoComplCacheCachingBuffer <buffer>
+
" FileType毎のOmni補完を設定
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
@@ -87,34 +90,38 @@ autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete
autocmd FileType ruby set omnifunc=rubycomplete#Complete
-Enable heavy omni completion.
-if !exists('g:neocomplcache_omni_patterns')
- let g:neocomplcache_omni_patterns = {}
-endif
-let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
-let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
+" Enable heavy omni completion.
+" if !exists('g:neocomplcache_omni_patterns')
+ " let g:neocomplcache_omni_patterns = {}
+" endif
+" let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
+" let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
+
+let g:neocomplcache_plugin_disable = {
+ \ 'include_complete' : 1
+\ }
"インクルードパスの指定
-let g:neocomplcache_include_paths = {
- \ 'cpp' : '.,/opt/local/include/gcc46/c++,/opt/local/include,/usr/include',
- \ 'c' : '.,/usr/include',
- \ 'ruby' : '.,$HOME/.rvm/rubies/**/lib/ruby/1.8/',
- \ }
+" let g:neocomplcache_include_paths = {
+ " \ 'cpp' : '.,/opt/local/include/gcc46/c++,/opt/local/include,/usr/include',
+ " \ 'c' : '.,/usr/include',
+ " \ 'ruby' : '.,$HOME/.rvm/rubies/**/lib/ruby/1.8/',
+ " \ }
" let g:neocomplcache_include_paths = {
" \ 'cpp' : '.,/opt/local/include/gcc46/c++,/opt/local/include,/usr/include',
" \ 'c' : '.,/usr/include',
" \ }
"インクルード文のパターンを指定
-let g:neocomplcache_include_patterns = {
- \ 'cpp' : '^\s*#\s*include',
- \ 'ruby' : '^\s*require',
- \ 'perl' : '^\s*use',
- \ }
+" let g:neocomplcache_include_patterns = {
+ " \ 'cpp' : '^\s*#\s*include',
+ " \ 'ruby' : '^\s*require',
+ " \ 'perl' : '^\s*use',
+ " \ }
" let g:neocomplcache_include_patterns = {
" \ 'cpp' : '^\s*#\s*include',
" \ 'perl' : '^\s*use',
" \ }
"インクルード先のファイル名の解析パターン
-let g:neocomplcache_include_exprs = {
- \ 'ruby' : substitute(substitute(v:fname,'::','/','g'),'$','\.rb','')
- \ }
+" let g:neocomplcache_include_exprs = {
+ " \ 'ruby' : substitute(substitute(v:fname,'::','/','g'),'$','\.rb','')
+ " \ }
Please sign in to comment.
Something went wrong with that request. Please try again.