-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
25 lines (22 loc) · 825 Bytes
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if empty($DOTFILES_ROOT)
echoerr "Error: DOTFILES_ROOT is empty"
endif
" vim-plug: automatic installation
" https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
let s:files = [
\ $DOTFILES_ROOT . "/vimrcs/basic.vim",
\ $DOTFILES_ROOT . "/vimrcs/plugins.vim",
\ $DOTFILES_ROOT . "/vimrcs/plugins_config.vim",
\ $DOTFILES_ROOT . "/vimrcs/color.vim",
\ "~/.local/.vimrc",
\ ]
for file in s:files
if filereadable(expand(file))
execute 'source ' . file
endif
endfor