Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

neocomplcacheが思い原因はfold関連だったので、fold系の設定/Pluginを外した。ついでにinclude/omni補完…

…を復活。これでしばらく様子見。
  • Loading branch information...
commit 47f66472c194f16ff9245b4f77e7646fdc8668fb 1 parent 03b3e09
@yuroyoro authored
View
6 .vimrc.bundle
@@ -69,7 +69,7 @@ call vundle#rc()
Bundle 'kana/vim-textobj-function.git'
" vim-textobj-fold : 折りたたまれたアレをtext-objectに
- Bundle 'kana/vim-textobj-fold.git'
+ " Bundle 'kana/vim-textobj-fold.git'
Bundle 'textobj-rubyblock'
" vim-textobj-entire : buffer全体をtext-objectに
@@ -156,10 +156,10 @@ call vundle#rc()
Bundle 'taglist.vim'
" tagsを利用したソースコード閲覧・移動補助機能 tagsファイルの自動生成
- Bundle 'Source-Explorer-srcexpl.vim'
+ " Bundle 'Source-Explorer-srcexpl.vim'
" NERD_tree, taglist, srcexpl の統合
- Bundle 'trinity.vim'
+ " Bundle 'trinity.vim'
" }}}
"
" Syntax {{{
View
81 .vimrc.completion.neocomplcache
@@ -5,6 +5,8 @@
let g:acp_enableAtStartup = 0
" NeoComplCacheを有効にする
let g:neocomplcache_enable_at_startup = 1
+" 補完が自動で開始される文字数
+let g:neocomplcache_auto_completion_start_length = 3
" smarrt case有効化。 大文字が入力されるまで大文字小文字の区別を無視する
let g:neocomplcache_enable_smart_case = 1
" camle caseを有効化。大文字を区切りとしたワイルドカードのように振る舞う
@@ -19,6 +21,8 @@ let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
let g:neocomplcache_enable_quick_match = 1
" 補完候補の一番先頭を選択状態にする(AutoComplPopと似た動作)
let g:neocomplcache_enable_auto_select = 1
+"ポップアップメニューで表示される候補の数。初期値は100
+let g:neocomplcache_max_list = 20
" Define dictionary.
let g:neocomplcache_dictionary_filetype_lists = {
@@ -81,47 +85,50 @@ inoremap <expr><C-x><C-o> &filetype == 'vim' ? "\<C-x><C-v><C-p>" : neocomplcach
autocmd BufReadPost,BufEnter,BufWritePost :NeoComplCacheCachingBuffer <buffer>
" FileType毎のOmni補完を設定
-autocmd FileType python set omnifunc=pythoncomplete#Complete
-autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
-autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
-autocmd FileType css set omnifunc=csscomplete#CompleteCSS
-autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
-autocmd FileType php set omnifunc=phpcomplete#CompletePHP
-autocmd FileType c set omnifunc=ccomplete#Complete
-autocmd FileType ruby set omnifunc=rubycomplete#Complete
+autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
+autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
+autocmd FileType html setlocal omnifunc=htmlcomplete#CompleteTags
+autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
+autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
+autocmd FileType php setlocal omnifunc=phpcomplete#CompletePHP
+autocmd FileType c setlocal omnifunc=ccomplete#Complete
+autocmd FileType ruby setlocal 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*::'
+if !exists('g:neocomplcache_omni_patterns')
+ let g:neocomplcache_omni_patterns = {}
+endif
+let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\h\w*\|\h\w*::'
+let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
+let g:neocomplcache_omni_patterns.c = '\%(\.\|->\)\h\w*'
+let g:neocomplcache_omni_patterns.cpp = '\h\w*\%(\.\|->\)\h\w*\|\h\w*::'
-let g:neocomplcache_plugin_disable = {
- \ 'include_complete' : 1
-\ }
+" autocmd FileType ruby let g:neocomplcache_source_disable = {
+ " \ 'include_complete' : 1,
+ " \ 'omni_complete' : 1
+" \ }
+" autocmd FileType ruby let g:neocomplcache_source_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',
- " \ }
+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_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_patterns = {
+ \ 'cpp' : '^\s*#\s*include',
+ \ 'ruby' : '^\s*require',
+ \ 'perl' : '^\s*use',
+ \ }
"インクルード先のファイル名の解析パターン
-" let g:neocomplcache_include_exprs = {
- " \ 'ruby' : substitute(substitute(v:fname,'::','/','g'),'$','\.rb','')
- " \ }
+let g:neocomplcache_include_exprs = {
+ \ 'ruby' : substitute(v:fname,'::','/','g')
+ \ }
+" ファイルを探す際に、この値を末尾に追加したファイルも探す。
+let g:neocomplcache_include_suffixes = {
+ \ 'ruby' : '.rb',
+ \ 'haskell' : '.hs'
+ \ }
View
6 .vimrc.editing
@@ -63,11 +63,11 @@ inoremap <expr> ,dd strftime('%Y/%m/%d')
inoremap <expr> ,dt strftime('%H:%M:%S')
" foldは各FiltTypeにお任せる
-set foldmethod=syntax
+" set foldmethod=syntax
" 折りたたみは全て展開した状態で開始する
-set foldlevelstart=99
+" set foldlevelstart=99
" .vimはmarker
-autocmd FileType vim :set foldmethod=marker
+" autocmd FileType vim :set foldmethod=marker
" <leader>j でJSONをformat
" http://wozozo.hatenablog.com/entry/2012/02/08/121504
View
2  .vimrc.misc
@@ -8,5 +8,3 @@ noremap ; :
" :でもexコマンドに入れるようにしておく
" noremap : ;
-" QuickFix Windowを下いっぱいで表示する
-botright cwindow
View
2  .vimrc.plugins_setting
@@ -195,7 +195,7 @@ let g:SrcExpl_WinHeight = 9 " プレビューウインドウの高
let g:SrcExpl_RefreshMapKey = "<Space>" " 手動表示のMAP
let g:SrcExpl_GoBackMapKey = "<C-b>" " 戻る機能のMAP
" Source Explorerの機能ON/OFF
-nmap <F8> :CMiniBufExplorer<CR>:SrcExplToggle<CR>:TMiniBufExplorer<CR>
+" nmap <F8> :CMiniBufExplorer<CR>:SrcExplToggle<CR>:TMiniBufExplorer<CR>
"------------------------------------
" open-blowser.vim
Please sign in to comment.
Something went wrong with that request. Please try again.