-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
executable file
·43 lines (32 loc) · 1.16 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
" vim: set ft=vim:
" Stibnite settings
let g:stibnite_conf_dir = '~/.vim/stibnite/'
let g:stibnite_enabled_plugins = split( system('ls ' . g:stibnite_conf_dir . 'plugins/enabled/'), '\n' )
let g:stibnite_configs = split(system('ls ' . g:stibnite_conf_dir . 'configs/enabled/', '\n'))
" Note: Skip initialization for vim-tiny or vim-small.
if !1 | finish | endif
set nocompatible
function! LoadStibNitePlugins()
call plug#begin('~/.vim/plugged')
""" Stibnite Plugins
for plugin in g:stibnite_enabled_plugins
execute 'source ' . g:stibnite_conf_dir . 'plugins/enabled/' . plugin
endfor
call plug#end()
endfunction
function! LoadStibNiteConfigs()
""" Stibnite Configs
for config in g:stibnite_configs
execute 'source ' . g:stibnite_conf_dir . 'configs/enabled/' . config
endfor
endfunction
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC | close
call LoadStibNitePlugins()
else
call LoadStibNitePlugins()
call LoadStibNiteConfigs()
endif
filetype plugin indent on