Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

.vimrc update fuga

  • Loading branch information...
commit 75249b082805a11da937919ddd462d3bc4424aa7 1 parent cc057ce
da1 authored July 30, 2012

Showing 1 changed file with 45 additions and 7 deletions. Show diff stats Hide diff stats

  1. 52  config/.vimrc
52  config/.vimrc
@@ -45,6 +45,9 @@ set fileencodings=utf-8,euc_jp
45 45
 ".viminfo
46 46
 set viminfo='1000,<500
47 47
 
  48
+"ファイルタイプによるシンタックス割り当て
  49
+autocmd BufNewFile,BufRead *.t set filetype=perl
  50
+
48 51
 "==================== keybind ====================
49 52
 "ctrl-c を ESCに置き換え
50 53
 "ctrl-cとESCは挙動が違う 以下URL参照
@@ -74,11 +77,32 @@ nnoremap <silent> ciy ciw<C-r>0<ESC>:let@/=@1<CR>:noh<CR>
74 77
 "<C-c> 2回押しで,検索ハイライトを消去
75 78
 nnoremap <C-c><C-c> :nohlsearch<CR>
76 79
 
  80
+nnoremap <SPACE>c :! perl -wc -Ilib -It/inc %<ENTER>
  81
+
  82
+noremap fg :call Search_pm('vne')<Enter>
  83
+noremap ff :call Search_pm('e')<Enter>
  84
+noremap fd :call Search_pm('sp')<Enter>
  85
+noremap ft :call Search_pm('tabe')<Enter>
  86
+
77 87
 "==================== showmarks.vim ====================
78 88
 let g:showmarks_include="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
79 89
 
80 90
 "==================== neocomplcache ====================
  91
+" Disable AutoComplPop.
  92
+let g:acp_enableAtStartup = 0
  93
+" Use neocomplcache.
81 94
 let g:neocomplcache_enable_at_startup = 1
  95
+" Use smartcase.
  96
+let g:neocomplcache_enable_smart_case = 1
  97
+" Use camel case completion.
  98
+let g:neocomplcache_enable_camel_case_completion = 1
  99
+" Use underbar completion.
  100
+let g:neocomplcache_enable_underbar_completion = 1
  101
+" Set minimum syntax keyword length.
  102
+let g:neocomplcache_min_syntax_length = 3
  103
+let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
  104
+" Use camel case completion.
  105
+
82 106
 let g:neocomplcache_max_list = 10
83 107
 let g:neocomplcache_dictionary_filetype_lists = {'perl' : $HOME . '/.vim/dict/perl.dict'}
84 108
 "$ wget https://raw.github.com/Cside/dotfiles/master/.vim/dict/perl.dict
@@ -87,15 +111,28 @@ let g:neocomplcache_dictionary_filetype_lists = {'perl' : $HOME . '/.vim/dict/pe
87 111
 "$ cd ~/.vim/snippets
88 112
 "$ wget https://raw.github.com/gist/2146105/464170751812997fc3b655cb547e2b5a929e9eb6/perl.snip
89 113
 
90  
-"ファイルタイプによるシンタックス割り当て
91  
-autocmd FileType *.t setfiletype=perl
  114
+let g:neocomplcache_snippets_dir = $HOME . '/.vim/snippets'
  115
+let g:neocomplcache_dictionary_filetype_lists = {
  116
+    \ 'default'    : '',
  117
+    \ 'perl'       : $HOME . '/.vim/dict/perl.dict'
  118
+    \ }
92 119
 
93  
-noremap fg :call Search_pm('vne')<Enter>
94  
-noremap ff :call Search_pm('e')<Enter>
95  
-noremap fd :call Search_pm('sp')<Enter>
96  
-noremap ft :call Search_pm('tabe')<Enter>
  120
+let g:neocomplcache_ctags_arguments_list = {
  121
+    \ 'perl' : '-R -h ".pm"'
  122
+    \ }
97 123
 
98  
-nnoremap <SPACE>c :! perl -wc -Ilib -It/inc %<ENTER>
  124
+" select with <TAB>
  125
+inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
  126
+
  127
+" Define keyword.
  128
+if !exists('g:neocomplcache_keyword_patterns')
  129
+  let g:neocomplcache_keyword_patterns = {}
  130
+endif
  131
+let g:neocomplcache_keyword_patterns['default'] = '\h\w*'
  132
+
  133
+"==================== snippets ====================
  134
+imap <expr><C-k> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : "\<C-n>"
  135
+smap <C-k> <Plug>(neocomplcache_snippets_expand)
99 136
 
100 137
 "==================== syntastic ====================
101 138
 let g:syntastic_auto_loc_list=1
@@ -192,6 +229,7 @@ filetype off
192 229
 
193 230
 NeoBundle 'git://github.com/Shougo/echodoc.git'
194 231
 NeoBundle 'git://github.com/Shougo/neocomplcache.git'
  232
+NeoBundle 'git://github.com/Shougo/neocomplcache-snippets-complete.git'
195 233
 NeoBundle 'git://github.com/Shougo/neobundle.vim.git'
196 234
 "http://d.hatena.ne.jp/s_yamaz/20110108/1294493899
197 235
 NeoBundle 'git://github.com/Shougo/unite.vim.git'

0 notes on commit 75249b0

Please sign in to comment.
Something went wrong with that request. Please try again.