Created
December 15, 2016 08:41
-
-
Save orumin/15a4e7183198365303a60a5cbc9854df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" plugin directory | |
let s:dein_dir = expand('~/.vim/bundle') | |
" dein.vim | |
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' | |
" download dein.vim if it's not installed | |
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 | |
" TOML File for plugin list | |
let s:toml = '~/.vim/rc/init/dein.toml' | |
let s:lazy_toml = '~/.vim/rc/init/dein_lazy.toml' | |
" caching TOML | |
if dein#load_state(expand('<sfile>'), s:toml, s:lazy_toml) | |
" start configuration for dein.vim | |
call dein#begin(s:dein_dir) | |
call dein#load_toml(s:toml, {'lazy': 0}) | |
call dein#load_toml(s:lazy_toml, {'lazy': 1}) | |
" finish configuration for dein.vim | |
call dein#end() | |
call dein#save_state() | |
endif | |
" install plugins (if it have not installed that) | |
if dein#check_install() | |
call dein#install() | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment