raa0121 il y a 6 ans
Parent
commit
effc4574ed
3 fichiers modifiés avec 460 ajouts et 484 suppressions
  1. 72 484
      .vimrc
  2. 129 0
      dein.toml
  3. 259 0
      dein_lazy.toml

+ 72 - 484
.vimrc

@@ -3,6 +3,9 @@ set enc=utf8
 scriptencoding utf-8
 " ζ*'ヮ')ζ ζ(*'ヮ'リ+
 "
+if &compatible
+  set nocompatible
+endif
 set ignorecase
 set smartcase
 set tabstop=2
@@ -69,469 +72,50 @@ if v:version >= 700
   nnoremap <C-S-Tab> gT
 endif
 
-if has('+regexpengine')
-  set re=0
-endif
-
 let g:vim_indent_cont = 2
 
 filetype off
 
-if has('vim_starting')
-  set runtimepath+=~/.vim/neobundle.vim.git
+" プラグインが実際にインストールされるディレクトリ
+let s:dein_dir = expand('~/.cache/dein')
+" dein.vim 本体
+let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
 
+" dein.vim がなければ github から落としてくる
+if &runtimepath !~# '/dein.vim'
+  if !isdirectory(s:dein_repo_dir)
+    execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
+  endif
+  execute 'set runtimepath^=' . fnamemodify(s:dein_repo_dir, ':p')
 endif
-call neobundle#begin(expand('~/.bundle'))
 
-let g:neobundle_default_git_protocol='https'
+" 設定開始
+if dein#load_state(s:dein_dir)
+  call dein#begin(s:dein_dir)
 
-if has('python')
-  NeoBundle 'OmniSharp/omnisharp-vim'
-  call neobundle#config('omnisharp-vim', {
-    \ 'lazy' : 1,
-    \ 'autoload' : {'filetypes': ['cs'] }
-    \ })
-endif
+  " プラグインリストを収めた TOML ファイル
+  " 予め TOML ファイル(後述)を用意しておく
+  let g:rc_dir    = expand('~/dotfiles')
+  let s:toml      = g:rc_dir . '/dein.toml'
+  let s:lazy_toml = g:rc_dir . '/dein_lazy.toml'
 
-NeoBundleFetch 'Shougo/neobundle.vim'
+  " TOML を読み込み、キャッシュしておく
+  call dein#load_toml(s:toml,      {'lazy': 0})
+  call dein#load_toml(s:lazy_toml, {'lazy': 1})
 
-NeoBundle 'Shougo/echodoc'
-call neobundle#config('echodoc', {
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \ 'insert' : 1,
-  \ }})
-if has('lua')
-  NeoBundle 'Shougo/neocomplete.vim'
-else
-  NeoBundle 'Shougo/neocomplcache'
-endif
-NeoBundle 'Shougo/neomru.vim'
-NeoBundle 'Shougo/neosnippet'
-call neobundle#config('neosnippet', {
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \ 'insert' : 1,
-  \ 'filetypes' : 'snippet',
-  \ 'unite_sources' : ['snippet', 'neosnippet/user', 'neosnippet/runtime'],
-  \ }})
-NeoBundle 'Shougo/neosnippet-snippets'
-call neobundle#config('neosnippet-snippets', {
-  \ 'depends' : 'Shougo/neosnippet'
-  \ })
-NeoBundle 'Shougo/unite-ssh'
-call neobundle#config('unite-ssh', {
-  \ 'lazy' : 1,
-  \ 'depends' : 'Shougo/unite.vim',
-  \ 'autoload' : { 'unite_sources' : 'ssh' }
-  \ })
-NeoBundle 'Shougo/unite.vim'
-call neobundle#config('unite.vim',{
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \ 'commands' : [{ 'name' : 'Unite',
-  \                 'complete' : 'customlist,unite#complete_source'},
-  \                 'UniteWithCursorWord', 'UniteWithInput']
-  \ }})
-NeoBundle 'Shougo/unite-outline'
-NeoBundle 'Shougo/vimfiler'
-call neobundle#config('vimfiler', {
-  \ 'lazy' : 1,
-  \ 'depends' : 'Shougo/unite.vim',
-  \ 'autoload' : {
-  \     'commands' : [
-  \                   { 'name' : 'VimFiler',
-  \                     'complete' : 'customlist,vimfiler#complete' },
-  \                   { 'name' : 'VimFilerExplorer',
-  \                     'complete' : 'customlist,vimfiler#complete' },
-  \                   { 'name' : 'VimFilerBufferDir',
-  \                     'complete' : 'customlist,vimfiler#complete' },
-  \                   { 'name' : 'Edit',
-  \                     'complete' : 'customlist,vimfiler#complete' },
-  \                   { 'name' : 'Write',
-  \                     'complete' : 'customlist,vimfiler#complete' },
-  \                   'Read', 'Source'],
-  \     'mappings' : ['<Plug>(vimfiler_switch)'],
-  \     'explorer' : 1,
-  \ }
-  \ })
-if has('win32') || has('win64')
-  NeoBundleFetch 'jnwhiteh/vim-golang'
-  call neobundle#config('vim-golang', {
-    \ 'type' : 'nosync',
-    \ 'lazy' : 1,
-    \ 'autoload' : { 'filetypes' : 'go'}
-    \ })
-else
-  NeoBundle 'Shougo/vimproc.vim'
-  call neobundle#config('vimproc.vim', {
-    \ 'build' : {
-    \     'windows' : 'make -f make_mingw64.mak',
-    \     'cygwin' : 'make -f make_cygwin.mak',
-    \     'mac' : 'make -f make_mac.mak',
-    \     'unix' : 'make -f make_unix.mak',
-    \   },
-    \ })
-  NeoBundle 'jnwhiteh/vim-golang'
-  call neobundle#config('vim-golang', {
-    \ 'lazy' : 1,
-    \ 'autoload' : { 'filetypes' : 'go' }
-    \ })
-endif
-NeoBundle 'Shougo/vimshell'
-call neobundle#config('vimshell', {
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \     'commands' : [{ 'name' : 'VimShell',
-  \                     'complete' : 'customlist,vimshell#complete'},
-  \                     'VimShellExecute', 'VimShellInteractive',
-  \                     'VimShellTerminal', 'VimShellPop'],
-  \     'mappings' : ['<Plug>(vimshell_switch)']
-  \ }})
-NeoBundle 'StanAngeloff/php.vim'
-call neobundle#config('php.vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'php' }
-  \ })
-NeoBundle 'basyura/J6uil.vim'
-call neobundle#config('J6uil.vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'J6uil',
-  \                'unice_source' : ['J6uil/rooms', 'J6uil/members']},
-  \ 'depends' : 'mattn/webapi-vim',
-  \ })
-NeoBundle 'bpearson/vim-phpcs'
-call neobundle#config('vim-phpcs', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'php' }
-  \ })
-NeoBundle 'cespare/vim-toml'
-call neobundle#config ('vim-toml', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'toml' }
-  \ })
-NeoBundle 'cohama/agit.vim'
-NeoBundle 'dag/vim2hs'
-call neobundle#config ('vim2hs', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'haskell' }
-  \ })
-NeoBundle 'eagletmt/ghcmod-vim'
-call neobundle#config('ghcmod-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'haskell' }
-  \ })
-if has('python')
-  NeoBundle 'editorconfig/editorconfig-vim'
-endif
-NeoBundle 'groenewege/vim-less'
-call neobundle#config('vim-less', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'less' }
-  \ })
-NeoBundle 'haya14busa/incsearch.vim'
-NeoBundle 'honza/vim-snippets'
-NeoBundle 'itchyny/calendar.vim'
-NeoBundle 'itchyny/lightline.vim'
-NeoBundle 'jceb/vim-orgmode'
-call neobundle#config('vim-orgmode', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'org' }
-  \ })
-if has('python')
-  NeoBundle 'joonty/vdebug'
-endif
-NeoBundle 'justinmk/vim-dirvish'
-NeoBundle 'jwalton512/vim-blade'
-call neobundle#config('vim-blade', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'blade' }
-  \ })
-if has('python')
-  NeoBundle 'kakkyz81/evervim'
-endif
-NeoBundle 'kamichidu/unite-javaimport'
-call neobundle#config('unite-javaimport', {
-  \ 'lazy' : 1,
-  \ 'depends' : [
-  \ 'kamichidu/vim-javalang', 'kamichidu/vim-javaclasspath',
-  \ 'Shougo/unite.vim'],
-  \ 'autoload' : { 'filetypes' : ['java', 'scala', 'clojure']}
-  \ })
-NeoBundle 'kamichidu/vim-milqi'
-NeoBundle 'kamichidu/vim-ref-java'
-call neobundle#config('vim-ref-java', {
-  \ 'depends' : [ 'mattn/wwwrenderer-vim' ],
-  \ })
-NeoBundle 'kamichidu/vim-vdbc'
-call neobundle#config('vim-vdbc', {
-  \ 'depends' : ['Shougo/vimproc.vim'] ,
-  \ 'build': {
-  \     'unix' :    'make -f Makefile',
-  \     'windows' : 'make -f Makefile.w64'
-  \ }
-  \ })
-NeoBundle 'kana/vim-smartinput'
-NeoBundle 'kana/vim-textobj-function'
-NeoBundle 'kana/vim-textobj-user'
-NeoBundle 'kchmck/vim-coffee-script'
-call neobundle#config('vim-coffee-script',{
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'coffee' }
-  \ })
-NeoBundle 'lambdalisue/vim-gita'
-call neobundle#config('vim-gita', {
-  \ 'lazy': 1,
-  \ 'autoload': { 'commands': ['Gita'] }
-  \ })
-NeoBundle 'lambdalisue/vim-unified-diff'
-NeoBundle 'leafgarland/typescript-vim'
-call neobundle#config('typescript-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'typescript'}
-  \ })
-NeoBundle 'machakann/vim-swap'
-NeoBundle 'mattn/benchvimrc-vim'
-call neobundle#config('benchvimrc-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'BenchVimrc' }
-  \ })
-NeoBundle 'mattn/flappyvird-vim'
-call neobundle#config('flappyvird-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'FlappyVird' }
-  \ })
-NeoBundle 'mattn/gist-vim'
-call neobundle#config('gist-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'Gist' }
-  \ })
-NeoBundle 'mattn/libcallex-vim'
-NeoBundle 'mattn/sonictemplate-vim'
-call neobundle#config('sonictemplate-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'Template' }
-  \ })
-NeoBundle 'mattn/unite-rhythmbox'
-call neobundle#config('unite-rhythmbox', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'unite_sources' : 'rhythmbox' },
-  \ 'depends' : 'Shougo/unite.vim'
-  \ })
-NeoBundle 'mattn/webapi-vim'
-NeoBundle 'mattn/wwwrenderer-vim'
-call neobundle#config('wwwrenderer-vim', {
-  \ 'lazy' : 1,
-  \ 'depends' : 'mattn/webapi-vim'
-  \ })
-NeoBundle 'miyakogi/conoline.vim'
-NeoBundle 'osyo-manga/quickrun-hook-u-nya-'
-call neobundle#config('quickrun-hook-u-nya-', {
-  \ 'depends' : 'thinca/vim-quickrun'
-  \ })
-NeoBundle 'osyo-manga/quickrun-hook-vcvarsall'
-NeoBundle 'osyo-manga/shabadou.vim'
-NeoBundle 'osyo-manga/unite-filetype'
-call neobundle#config('unite-filetype', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'unite_sources' : ['filetype', 'filetype/new']},
-  \ 'depends' : ['Shougo/unite.vim']
-  \ })
-NeoBundle 'osyo-manga/unite-highlight'
-call neobundle#config('unite-highlight', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'unite_sources' : ['highlight']},
-  \ 'depends' : ['Shougo/unite.vim']
-  \ })
-NeoBundle 'osyo-manga/unite-quickfix'
-call neobundle#config('unite-quickfix', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'unite_sources' : ['quickfix', 'location_list']},
-  \ 'depends' : 'Shougo/unite.vim'
-  \ })
-NeoBundle 'osyo-manga/vim-marching'
-call neobundle#config('vim-marching', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : ['c', 'cpp'] },
-  \ 'depends' : ['Shougo/vimproc.vim', 'osyo-manga/vim-reunions']
-  \ })
-NeoBundle 'osyo-manga/vim-monster'
-call neobundle#config('vim-monster', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'ruby' }
-  \ })
-NeoBundle 'osyo-manga/vim-over'
-NeoBundle 'osyo-manga/vim-reunions'
-NeoBundle 'osyo-manga/vim-snowdrop'
-call neobundle#config('vim-snowdrop', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'cpp' }
-  \ })
-NeoBundle 'osyo-manga/vim-watchdogs'
-NeoBundle 'Quramy/tsuquyomi'
-call neobundle#config('tsuquyomi', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'typescript'}
-  \ })
-NeoBundle 'raa0121/vim-ulilith'
-NeoBundle 'rbtnn/colorscheme-gochiusa.vim'
-NeoBundle 'rbtnn/game_engine.vim'
-NeoBundle 'rbtnn/vimconsole.vim'
-call neobundle#config('vimconsole.vim', {
-  \ 'lazy' : 1,
-  \ 'depends' : 'thinca/vim-prettyprint',
-  \ 'autoload' : { 'commands' : 'VimConsoleOpen' }
-  \ })
-NeoBundle 'rhysd/vim-crystal'
-call neobundle#config('vim-crystal', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'crystal' }
-  \ })
-NeoBundle 'rust-lang/rust.vim'
-call neobundle#config('rust.vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'rust' }
-  \ })
-NeoBundle 'ryutorion/vim-itunes'
-NeoBundle 'slim-template/vim-slim'
-NeoBundle 'supermomonga/thingspast.vim'
-"call neobundle#config('thingspast.vim', {
-"  \ 'build' : { 'unix' : 'bundle install' }
-"  \ })
-NeoBundle 'thinca/vim-ft-clojure'
-call neobundle#config('vim-ft-clojure', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'clojure' }
-  \ })
-NeoBundle 'thinca/vim-github'
-call neobundle#config('vim-github', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'Github' }
-  \ })
-NeoBundle 'thinca/vim-prettyprint'
-call neobundle#config('vim-prettyprint', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : ['PP', 'PrettyPrint']}
-  \ })
-NeoBundle 'thinca/vim-quickrun'
-call neobundle#config('vim-quickrun', {
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \   'mappings' : [
-  \     ['nxo', '<Plug>(quickrun)']],
-  \   'commands' : 'QuickRun',
-  \ },
-  \ })
-NeoBundle 'thinca/vim-ref'
-call neobundle#config('vim-ref', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : ['Ref', 'RefHistory'],
-  \                'unite_sources' : ['ref/erlang', 'ref/man',
-  \                                   'ref/pydoc', 'ref/redis',
-  \                                   'ref/clojure',
-  \                                   'ref/refe', 'ref/webdict']}
-  \ })
-NeoBundle 'thinca/vim-singleton'
-NeoBundle 'thinca/vim-splash'
-NeoBundle 'thinca/vim-textobj-function-javascript'
-call neobundle#config('vim-textobj-function-javascript', {
-  \ 'depends' : ['kana/vim-textobj-function'],
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'javascript' }
-  \ })
-NeoBundle 'thinca/vim-threes'
-call neobundle#config('vim-threes', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'ThreesStart' }
-  \ })
-NeoBundle 'tobyS/vmustache'
-call neobundle#config('vmustache', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'vim' }
-  \ })
-NeoBundle 'tobyS/pdv'
-call neobundle#config('pdv', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'php' }
-  \ })
-NeoBundle 'tpope/vim-cucumber'
-call neobundle#config('vim-cucumber', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'cucumber' }
-  \ })
-NeoBundle 'tsukkee/lingr-vim'
-call neobundle#config('lingr-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'commands' : 'LingrLaunch' }
-  \ })
-NeoBundle 'tyru/kirikiri.vim'
-call neobundle#config('lingr-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'kscript' }
-  \ })
-NeoBundle 'tyru/open-browser.vim'
-call neobundle#config('open-browser.vim',{
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \   'mappings' : '<Plug>(open-browser-wwwsearch)',
-  \ }
-  \ })
-NeoBundle 'ujihisa/neco-ghc'
-call neobundle#config('neco-ghc', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'haskell' }
-  \ })
-if executable('look')
-  NeoBundle 'ujihisa/neco-look'
-endif
-NeoBundle 'ujihisa/neoclojure.vim'
-call neobundle#config('neco-ghc', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'clojure',
-  \                'unite_sources' : ['ref/neoclojure'] }
-  \ })
-NeoBundle 'ujihisa/unite-colorscheme'
-call neobundle#config('unite-colorscheme', {
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'unite_sources' : ['colorscheme'] }
-  \ })
-NeoBundle 'ujihisa/vimshell-ssh'
-call neobundle#config('vimshell-ssh',{
-  \ 'lazy' : 1,
-  \ 'depends' : 'Shougo/vimshell',
-  \ 'autoload' : { 'filetypes' : 'vimshell'}
-  \ })
-NeoBundle 'yaasita/slack.vim'
-NeoBundle 'vim-jp/cpp-vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : {'filetypes' : 'cpp'}
-  \ }
-NeoBundle 'vim-jp/vimdoc-ja'
-NeoBundle 'vim-jp/vital.vim'
-call neobundle#config('vital.vim', {
-  \ 'lazy' : 1,
-  \ 'autoload' : {
-  \   'commands' : ['Vitalize'],
-  \   'functions' : ['vital#of', 'vital']
-  \ }
-  \ })
-NeoBundle 'vim-scripts/AnsiEsc.vim'
-NeoBundle 'vim-scripts/sudo.vim'
-NeoBundle 'yoppi/fluentd.vim'
-call neobundle#config('fluentd.vim',{
-  \ 'lazy' : 1,
-  \ 'autoload' : { 'filetypes' : 'fluentd'}
-  \ })
-if executable('w3m')
-  NeoBundle 'yuratomo/w3m.vim'
-  call neobundle#config('w3m.vim',{
-    \ 'lazy' : 1,
-    \ 'autoload' : { 'commands' : ['W3m', 'W3mTab']}
-    \ })
+  " 設定終了
+  call dein#end()
+  call dein#save_state()
 endif
 
-call neobundle#end()
 filetype plugin indent on
+syntax enable
+
+" もし、未インストールものものがあったらインストール
+if dein#check_install()
+  call dein#install()
+endif
+
 
 if has('clientserver')
   call singleton#enable()
@@ -568,7 +152,7 @@ map /  <Plug>(incsearch-forward)
 map ?  <Plug>(incsearch-backward)
 map g/ <Plug>(incsearch-stay)
 
-if neobundle#is_installed('neocomplcache')
+if dein#tap('neocomplcache')
   let g:neocomplcache_enable_at_startup = 1
   let g:neocomplcache_enable_smart_case = 1
   let g:neocomplcache_enable_camel_case_completion = 1
@@ -579,7 +163,7 @@ if neobundle#is_installed('neocomplcache')
   let g:neocomplcache_keyword_patterns['default'] = '\h\w*'
 endif
 
-if neobundle#is_installed('neocomplete.vim')
+if dein#tap('neocomplete.vim')
   let g:neocomplete#enable_at_startup = 1
   let g:neocomplete#enable_smart_case = 1
   let g:neocomplete#enable_camel_case_completion = 1
@@ -596,6 +180,8 @@ if neobundle#is_installed('neocomplete.vim')
   let g:neocomplete#sources#omni#input_patterns.ruby = '[^. *\t]\.\|\h\w*::'
   let g:neocomplete#sources#omni#input_patterns.cs = '[^.]\.\%(\u\{2,}\)\?'
   let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
+  inoremap <expr><C-g>     neocomplete#undo_completion()
+  inoremap <expr><C-l>     neocomplete#complete_common_string()
 endif
 
 "let g:vimfiler_as_default_explorer = 1
@@ -605,7 +191,7 @@ endif
 
 let g:monster#completion#rcodetools#backend = 'async_rct_complete'
 
-let g:neosnippet#snippets_directory = '~/.vim/snippet,~/.bundle/vim-snippets/snippets'
+let g:neosnippet#snippets_directory = '~/.vim/snippet,~/.cache/dein/honza/vim-snippets/snippets'
 
 let g:pdv_template_dir = $HOME . "/.hariti/bundle/pdv/templates_snip"
 
@@ -634,7 +220,7 @@ augroup vimrc
   autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} setlocal filetype=markdown
   autocmd BufNewFile,BufRead *.gradle setlocal filetype=groovy
   autocmd BufNewFile,BufRead */Classes/*.{cpp,h,hpp} setlocal tags+=$HOME/ctags/cocos2dx.tags
-  autocmd FileType php setlocal omnifunc=phpcomplete_extended#CompletePHP noexpandtab wrap tabstop=4 shiftwidth=4 tags+=$HOME/ctags/php.tags
+  autocmd FileType php setlocal omnifunc=padawan#Complete noexpandtab wrap tabstop=4 shiftwidth=4 tags+=$HOME/ctags/php.tags
   autocmd FileType smarty setlocal noexpandtab wrap tabstop=4 shiftwidth=4 softtabstop=4 tags+=$HOME/ctags/php.tags
   autocmd FileType java setlocal noexpandtab wrap tabstop=4 shiftwidth=4
   autocmd FileType ruby setlocal tags+=$HOME/ctags/ruby.tags
@@ -650,6 +236,8 @@ let g:netrw_nogx = 1
 nmap gx <Plug>(openbrowser-smart-search)
 vmap gx <Plug>(openbrowser-smart-search)
 
+let g:Vimphpcs_Phpcscmd = expand('~/.config/composer/vendor/bin/phpcs')
+
 let g:quickrun_config = {}
 
 let g:quickrun_config = {
@@ -698,22 +286,23 @@ let g:quickrun_config['cpp/msvc2013'] = {
   \ 'hook/vcvarsall/enable' : 1,
   \ 'hook/vcvarsall/bat' : shellescape($VS120COMNTOOLS . 'vsvars32.bat')
   \ }
-let g:quickrun_config['php/watchdogs_checker'] = {
-  \ 'type' : 'watchdogs_checker/phpcs'
-  \ }
-let g:quickrun_config['vim/watchdogs_checker'] = {
-  \ 'type' : 'watchdogs_checker/vint'
-  \ }
+if executable(g:Vimphpcs_Phpcscmd)
+  let g:quickrun_config['php/watchdogs_checker'] = {
+    \ 'type' : 'watchdogs_checker/phpcs'
+    \ }
+endif
 let g:quickrun_config['watchdogs_checker/_'] = {
   \ 'hook/close_quickfix/enable_exit': 1,
   \ 'hook/close_unite_quickfix/enable_exit' : 1,
   \ }
-let g:quickrun_config['watchdogs_checker/phpcs'] = {
-  \ 'quickfix/errorformat': g:phpcs_errorformat,
-  \ 'command' : g:Vimphpcs_Phpcscmd,
-  \ 'cmdopt' : '--report=csv --standard=' . g:Vimphpcs_Standard,
-  \ 'exec' : '%c %o %s:p',
-  \ }
+if executable(g:Vimphpcs_Phpcscmd)
+  let g:quickrun_config['watchdogs_checker/phpcs'] = {
+    \ 'quickfix/errorformat': g:phpcs_errorformat,
+    \ 'command' : g:Vimphpcs_Phpcscmd,
+    \ 'cmdopt' : '--report=csv --standard=' . g:Vimphpcs_Standard,
+    \ 'exec' : '%c %o %s:p',
+    \ }
+endif
 let g:quickrun_config['watchdogs_checker/phpmd'] = {
   \ 'quickfix/errorformat': '%E%f:%l\s%#%m',
   \ 'command' : '$HOME/.composer/vendor/bin/phpmd',
@@ -721,10 +310,6 @@ let g:quickrun_config['watchdogs_checker/phpmd'] = {
   \ 'exec' : '%c %s:p %o',
   \ }
 
-let g:quickrun_config['watchdogs_checker/vint'] = {
-  \ 'command'   : 'vint',
-  \ 'exec'      : '%c %o %s:p',
- \ }
 let g:watchdogs_check_BufWritePost_enable = 1
 let g:watchdogs_check_BufWritePost_enables = {
   \   'cpp' : 0,
@@ -736,7 +321,9 @@ let g:watchdogs_check_CursorHold_enables = {
   \   'php' : 1,
   \ }
 
-call watchdogs#setup(g:quickrun_config)
+if dein#tap('watchdocs.vim')
+  call watchdogs#setup(g:quickrun_config)
+endif
 
 let g:lingr_vim_user = 'raa0121'
 let g:J6uil_display_offline  = 0
@@ -765,7 +352,6 @@ end
 
 let g:conoline_auto_enable = 1
 
-call unite#filters#matcher_default#use(['matcher_fuzzy'])
 let g:unite_enable_start_insert = 0
 let g:unite_source_directory_mru_long_limit = 3000
 let g:unite_source_file_mru_filename_format = ''
@@ -784,16 +370,18 @@ nnoremap <silent> ,g  :<C-u>Unite grep:. -buffer-name=search-buffer<CR>
 nnoremap <silent> ,cg :<C-u>Unite grep:. -buffer-name=search-buffer<CR><C-R><C-W>
 nnoremap <silent> ,r  :<C-u>UniteResume search-buffer<CR>
 
-call textobj#user#plugin('datetime', {
-\   'date': {
-\     'pattern': '\<\d\d\d\d-\d\d-\d\d\>',
-\     'select': ['ad', 'id'],
-\   },
-\   'time': {
-\     'pattern': '\<\d\d:\d\d:\d\d\>',
-\     'select': ['at', 'it'],
-\   },
-\ })
+if dein#tap('vim-textobj-user')
+  call textobj#user#plugin('datetime', {
+  \   'date': {
+  \     'pattern': '\<\d\d\d\d-\d\d-\d\d\>',
+  \     'select': ['ad', 'id'],
+  \   },
+  \   'time': {
+  \     'pattern': '\<\d\d:\d\d:\d\d\>',
+  \     'select': ['at', 'it'],
+  \   },
+  \ })
+endif
 
 
 set diffexpr=unified_diff#diffexpr()
@@ -870,8 +458,8 @@ let g:lightline = {
 \   'charcode': 'MyCharCode',
 \   'gitgutter': 'MyGitGutter',
 \ },
-\ 'separator': { 'left': "\u2b80", 'right': "\u2b82" },
-\ 'subseparator': { 'left': "\u2b81", 'right': "\u2b83" }
+\ 'separator': { 'left': "\ue0c0", 'right': "\ue0c2" },
+\ 'subseparator': { 'left': "\ue0c1", 'right': "\ue0c3" }
 \ }
 
 

+ 129 - 0
dein.toml

@@ -0,0 +1,129 @@
+[[plugins]]
+repo = 'Shougo/neomru.vim'
+
+[[plugins]]
+repo = 'Shougo/neosnippet-snippets'
+depends = ['neosnippet']
+
+[[plugins]]
+repo = 'Shougo/unite-outline'
+
+[[plugins]]
+repo = 'Shougo/vimproc.vim'
+hook_post_update = '''
+  if dein#util#_is_windows()
+    let cmd = 'tools\\update-dll-mingw'
+  elseif dein#util#_is_cygwin()
+    let cmd = 'make -f make_cygwin.mak'
+  elseif executable('gmake')
+    let cmd = 'gmake'
+  else
+    let cmd = 'make'
+  endif
+  let g:dein#plugin.build = cmd
+'''
+
+[[plugins]]
+repo = 'cohama/agit.vim'
+  
+[[plugins]]
+repo = 'editorconfig/editorconfig-vim'
+if = '''has('python')'''
+
+[[plugins]]
+repo = 'haya14busa/incsearch.vim'
+
+[[plugins]]
+repo = 'honza/vim-snippets'
+
+[[plugins]]
+repo = 'itchyny/calendar.vim'
+
+[[plugins]]
+repo = 'itchyny/lightline.vim'
+  
+[[plugins]]
+repo = 'joonty/vdebug'
+if = '''has('python')'''
+
+[[plugins]]
+repo = 'justinmk/vim-dirvish'
+  
+[[plugins]]
+repo = 'kakkyz81/evervim'
+if = '''has('python')'''
+
+[[plugins]]
+repo = 'kamichidu/vim-ref-java'
+depends = ['wwwrenderer-vim']
+
+[[plugins]]
+repo = 'kana/vim-smartinput'
+
+[[plugins]]
+repo = 'kana/vim-textobj-function'
+
+[[plugins]]
+repo = 'kana/vim-textobj-user'
+
+[[plugins]]
+repo = 'lambdalisue/vim-unified-diff'
+
+[[plugins]]
+repo = 'machakann/vim-swap'
+
+[[plugins]]
+repo = 'mattn/libcallex-vim'
+
+[[plugins]]
+repo = 'mattn/webapi-vim'
+
+[[plugins]]
+repo = 'miyakogi/conoline.vim'
+
+[[plugins]]
+repo = 'osyo-manga/quickrun-hook-u-nya-'
+depends = ['vim-quickrun']
+
+[[plugins]]
+repo = 'osyo-manga/quickrun-hook-vcvarsall'
+
+[[plugins]]
+repo = 'osyo-manga/shabadou.vim'
+
+[[plugins]]
+repo = 'osyo-manga/vim-over'
+
+[[plugins]]
+repo = 'osyo-manga/vim-reunions'
+
+[[plugins]]
+repo = 'osyo-manga/vim-watchdogs'
+
+[[plugins]]
+repo = 'rbtnn/game_engine.vim'
+
+[[plugins]]
+repo = 'thinca/vim-quickrun'
+
+[[plugins]]
+repo = 'thinca/vim-singleton'
+
+[[plugins]]
+repo = 'thinca/vim-splash'
+
+[[plugins]]
+repo = 'ujihisa/neco-look'
+if = '''executable('look')'''
+
+[[plugins]]
+repo = 'yaasita/slack.vim'
+
+[[plugins]]
+repo = 'vim-jp/vimdoc-ja'
+
+[[plugins]]
+repo = 'vim-scripts/AnsiEsc.vim'
+
+[[plugins]]
+repo = 'vim-scripts/sudo.vim'

+ 259 - 0
dein_lazy.toml

@@ -0,0 +1,259 @@
+[[plugins]]
+repo = 'OmniSharp/omnisharp-vim'
+on_ft = 'cs'
+if = '''has('python')'''
+
+[[plugins]]
+repo = 'Shougo/echodoc'
+on_i = 1
+
+[[plugins]]
+repo = 'Shougo/neocomplete.vim'
+if = '''has('lua')'''
+
+[[plugins]]
+repo = 'Shougo/neocomplcache'
+if = '''!has('lua')'''
+
+[[plugins]]
+repo = 'Shougo/neosnippet'
+on_i = 1
+on_ft = ['snippet']
+
+[[plugins]]
+repo = 'Shougo/unite-ssh'
+depends = ['unite.vim']
+
+[[plugins]]
+repo = 'Shougo/unite.vim'
+on_cmd = ['Unite']
+
+[[plugins]]
+repo = 'Shougo/vimfiler'
+depends = ['unite.vim']
+on_cmd = ['VimFiler', 'VimFilerExplorer', 'VimFilerBufferDir', 'Edit', 'Write', 'Read', 'Source']
+on_map = ['<Plug>(vimfiler_switch)']
+
+[[plugins]]
+repo = 'jnwhiteh/vim-golang'
+on_ft = 'go'
+
+[[plugins]]
+repo = 'Shougo/vimshell'
+on_cmd = ['VimShell', 'VimShellExecute', 'VimShellInteractive','VimShellTerminal', 'VimShellPop']
+on_map = ['<Plug>(vimfiler_switch)']
+
+[[plugins]]
+repo = 'StanAngeloff/php.vim'
+on_ft = 'php'
+
+[[plugins]]
+repo = 'basyura/J6uil.vim'
+depends = ['webapi-vim']
+on_cmd ='J6uil'
+
+[[plugins]]
+repo = 'bpearson/vim-phpcs'
+on_ft = 'php'
+
+[[plugins]]
+repo = 'cespare/vim-toml'
+on_ft = 'toml'
+
+[[plugins]]
+repo = 'dag/vim2hs'
+on_ft = 'haskell'
+
+[[plugins]]
+repo = 'eagletmt/ghcmod-vim'
+on_ft = 'haskell'
+
+[[plugins]]
+repo = 'groenewege/vim-less'
+on_ft = 'less'
+
+[[plugins]]
+repo = 'jceb/vim-orgmode'
+on_ft = 'org'
+
+[[plugins]]
+repo = 'jwalton512/vim-blade'
+on_ft = 'blade'
+
+[[plugins]]
+repo = 'kamichidu/unite-javaimport'
+depends = ['vim-javalang', 'vim-javaclasspath', 'unite.vim']
+on_ft = ['java', 'scala', 'clojure']
+
+[[plugins]]
+repo = 'kchmck/vim-coffee-script'
+on_ft = 'coffee'
+
+[[plugins]]
+repo = 'lambdalisue/vim-gita'
+on_cmd = ['Gita']
+
+[[plugins]]
+repo = 'leafgarland/typescript-vim'
+on_ft = 'typescript'
+
+[[plugins]]
+repo = 'mattn/benchvimrc-vim'
+on_cmd = 'BenchVimrc'
+
+[[plugins]]
+repo = 'mattn/flappyvird-vim'
+on_cmd = 'FlappyVird'
+
+[[plugins]]
+repo = 'mattn/gist-vim'
+on_cmd = 'Gist'
+
+[[plugins]]
+repo = 'mattn/sonictemplate-vim'
+on_cmd = 'Template'
+
+[[plugins]]
+repo = 'mattn/unite-rhythmbox'
+depends = ['unite.vim']
+on_source = ['unite.vim']
+
+[[plugins]]
+repo = 'mattn/wwwrenderer-vim'
+depends = ['webapi-vim']
+
+[[plugins]]
+repo = 'mkusher/padawan.vim'
+on_ft = 'php'
+
+[[plugins]]
+repo = 'osyo-manga/unite-filetype'
+depends = ['unite.vim']
+on_source = ['unite.vim']
+
+[[plugins]]
+repo = 'osyo-manga/unite-highlight'
+depends = ['unite.vim']
+on_source = ['unite.vim']
+
+[[plugins]]
+repo = 'osyo-manga/unite-quickfix'
+depends = ['unite.vim']
+on_source = ['unite.vim']
+
+[[plugins]]
+repo = 'osyo-manga/vim-marching'
+depends = ['vimproc.vim', 'vim-reunions']
+on_ft = ['c', 'cpp']
+
+[[plugins]]
+repo = 'osyo-manga/vim-monster'
+on_ft = 'ruby'
+
+[[plugins]]
+repo = 'osyo-manga/vim-snowdrop'
+on_ft = 'cpp'
+
+[[plugins]]
+repo = 'Quramy/tsuquyomi'
+on_ft = 'typescript'
+
+[[plugins]]
+repo = 'rbtnn/vimconsole.vim'
+depends = ['vim-prettyprint']
+on_cmd = 'VimConsoleOpen'
+
+[[plugins]]
+repo = 'rhysd/vim-crystal'
+on_ft = 'crystal'
+
+[[plugins]]
+repo = 'rust-lang/rust.vim'
+on_ft = 'rust'
+
+[[plugins]]
+repo = 'slim-template/vim-slim'
+on_ft = 'slim'
+
+[[plugins]]
+repo = 'thinca/vim-ft-clojure'
+on_ft = 'clojure'
+
+[[plugins]]
+repo = 'thinca/vim-github'
+on_cmd = 'Github'
+
+[[plugins]]
+repo = 'thinca/vim-prettyprint'
+on_cmd = ['PP', 'PrettyPrint']
+
+[[plugins]]
+repo = 'thinca/vim-ref'
+on_cmd = ['Ref', 'RefHistory']
+
+[[plugins]]
+repo = 'thinca/vim-textobj-function-javascript'
+depends = ['vim-textobj-function']
+on_ft = 'javascript'
+
+[[plugins]]
+repo = 'thinca/vim-threes'
+on_cmd = 'ThreesStart'
+
+[[plugins]]
+repo = 'tobyS/vmustache'
+on_ft = 'vim'
+
+[[plugins]]
+repo = 'tobyS/pdv'
+on_ft = 'php'
+
+[[plugins]]
+repo = 'tpope/vim-cucumber'
+on_ft = 'cucumber'
+
+[[plugins]]
+repo = 'tsukkee/lingr-vim'
+on_cmd = 'LingrLaunch'
+
+[[plugins]]
+repo = 'tyru/kirikiri.vim'
+on_ft = 'kscript'
+
+[[plugins]]
+repo = 'tyru/open-browser.vim'
+on_map = ['<Plug>(open-browser-wwwsearch)']
+
+[[plugins]]
+repo = 'ujihisa/neco-ghc'
+on_ft = 'haskell'
+
+[[plugins]]
+repo = 'ujihisa/neoclojure.vim'
+on_ft = 'clojure'
+
+[[plugins]]
+repo = 'ujihisa/unite-colorscheme'
+on_source = ['unite.vim']
+
+[[plugins]]
+repo = 'ujihisa/vimshell-ssh'
+depends = ['vimshell']
+on_ft = 'vimshell'
+
+[[plugins]]
+repo = 'vim-jp/cpp-vim'
+on_ft = 'cpp'
+
+[[plugins]]
+repo = 'vim-jp/vital.vim'
+on_cmd = ['Vitalize']
+
+[[plugins]]
+repo = 'yoppi/fluentd.vim'
+on_ft = 'fluentd'
+
+[[plugins]]
+repo = 'yuratomo/w3m.vim'
+on_cmd = ['W3m', 'W3mTab']
+if = '''executable('w3m')'''