"""------- dein.vim の設定 ---- 2017/04/24 ---------- " "https://rcmdnk.com/blog/2016/03/10/computer-vim/ " Flags let s:use_dein = 1 " vi compatibility if !&compatible set nocompatible endif " Prepare .vim dir let s:vimdir = $VIM . "/.vim" if has("vim_starting") if ! isdirectory(s:vimdir) call system("mkdir " . s:vimdir) endif endif " dein let s:dein_enabled = 1 " Set dein paths let s:dein_dir = s:vimdir . '/dein' let s:dein_github = s:dein_dir . '/repos/github.com' let s:dein_repo_name = "Shougo/dein.vim" let s:dein_repo_dir = s:dein_github . '/' . s:dein_repo_name " Check dein has been installed or not. if !isdirectory(s:dein_repo_dir) echo "dein is not installed, install now " let s:dein_repo = "https://github.com/" . s:dein_repo_name echo "git clone " . s:dein_repo . " " . s:dein_repo_dir call system("git clone " . s:dein_repo . " " . s:dein_repo_dir) endif let &runtimepath = &runtimepath . "," . s:dein_repo_dir if dein#load_state(s:dein_dir) " Begin plugin part call dein#begin(s:dein_dir) call dein#add('Shougo/dein.vim') call dein#add('Shougo/vimproc', { \ 'build': { \ 'windows': 'tools\\update-dll-mingw', \ 'cygwin': 'make -f make_cygwin.mak', \ 'mac': 'make -f make_mac.mak', \ 'linux': 'make', \ 'unix': 'gmake'}}) " Unite {{{ call dein#add('Shougo/unite.vim', { \ 'depends': ['vimproc'], \ 'on_cmd': ['Unite'], \ 'lazy': 1}) call dein#add('Shougo/unite-outline') call dein#add('ujihisa/unite-colorscheme') call dein#add('Shougo/neomru.vim') call dein#add('scrooloose/nerdtree') " }}} " luaがなければ補完とスニペットは無効にする if has('lua') call dein#add('Shougo/neocomplete.vim', { \ 'on_i': 1, \ 'lazy': 1}) call dein#add('Shougo/neosnippet') call dein#add('Shougo/neosnippet-snippets') " call dein#add('ujihisa/neco-look', { " \ 'depends': ['neocomplete.vim']}) endif " HTML,CSS {{{ " call dein#add('vim-scripts/HTML-AutoCloseTag') " html_autoclosetag.vimはインストールはできたが動作しない call dein#add('mattn/emmet-vim') call dein#add('othree/html5.vim') call dein#add('hokaccha/vim-html5validator') call dein#add('hail2u/vim-css3-syntax') call dein#add('gko/vim-coloresque') " }}}" " etc call dein#add('vim-scripts/mru.vim') " ok call dein#add('vim-scripts/FavMenu.vim') " ok call dein#add('vim-scripts/surround.vim') call dein#add('molok/vim-smartusline') " call dein#add('vim-scripts/closetag.vim') " closetag.vimはインストールはできたが動作しない " call dein#add('Morikatsu/My_commentout') " commentout.vimはインストールはできたが動作しない " "" call dein#add('tyru/open-browser.vim', { "" \ 'on_map': ['(openbrowser-smart-search)'], "" \ 'lazy': 1}) call dein#end() call dein#save_state() endif " Installation check. if dein#check_install() call dein#install() endif if s:dein_enabled && dein#tap("unite.vim") nnoremap [unite] nmap u [unite] nnoremap [unite]b :Unite buffer endif