|
| 1 | +let s:dein_dir = expand('~/.vim') |
| 2 | +let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' |
| 3 | + |
| 4 | +if &runtimepath !~# '/dein.vim' |
| 5 | + if !isdirectory(s:dein_repo_dir) |
| 6 | + execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir |
| 7 | + endif |
| 8 | + execute 'set runtimepath^=' . s:dein_repo_dir |
| 9 | +endif |
| 10 | + |
| 11 | +call dein#begin('~/.vim') |
| 12 | + |
| 13 | +call dein#add('Shougo/neocomplete.vim') |
| 14 | +call dein#add('scrooloose/nerdtree') |
| 15 | +call dein#add('jistr/vim-nerdtree-tabs') |
| 16 | +call dein#add('vim-syntastic/syntastic') |
| 17 | +call dein#add('mtscout6/syntastic-local-eslint.vim') |
| 18 | +call dein#add('1000ch/syntastic-local-stylelint.vim') |
| 19 | +call dein#add('powerline/powerline') |
| 20 | + |
| 21 | +call dein#end() |
| 22 | + |
| 23 | +if dein#check_install() |
| 24 | + call dein#install() |
| 25 | +endif |
| 26 | + |
| 27 | +autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS |
| 28 | +autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags |
| 29 | +autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS |
| 30 | +autocmd FileType python setlocal omnifunc=pythoncomplete#Complete |
| 31 | +autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags |
| 32 | + |
| 33 | +" NeoComplete |
| 34 | +let g:neocomplete#enable_at_startup = 1 |
| 35 | +inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
| 36 | + |
| 37 | +" NERDTree |
| 38 | +let NERDTreeShowHidden = 1 |
| 39 | + |
| 40 | +" NERDTree tabs |
| 41 | +let g:nerdtree_tabs_open_on_console_startup = 1 |
| 42 | +let g:nerdtree_tabs_focus_on_files = 1 |
| 43 | + |
| 44 | +" syntastic |
| 45 | +set statusline+=%#warningmsg# |
| 46 | +set statusline+=%{SyntasticStatuslineFlag()} |
| 47 | +set statusline+=%* |
| 48 | + |
| 49 | +let g:syntastic_javascript_checkers = ['eslint'] |
| 50 | +let g:syntastic_css_checkers = ['stylelint'] |
| 51 | +let g:syntastic_always_populate_loc_list = 1 |
| 52 | +let g:syntastic_auto_loc_list = 1 |
| 53 | +let g:syntastic_check_on_open = 1 |
| 54 | +let g:syntastic_check_on_wq = 0 |
| 55 | + |
| 56 | +" powerline |
| 57 | +set rtp+=~/.vim/repos/github.com/powerline/powerline/powerline/bindings/vim |
0 commit comments