-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.vim
32 lines (26 loc) · 1.07 KB
/
init.vim
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
" set runtimepath+=~/.config/nvim,~/.config/nvim/after,~/.config/nvim/autoload
" set packpath+=~/.config/nvim
" Auto install vim plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" ==================================================
" actions to be done prior for configuration
" ==================================================
for f in split(glob('~/.config/nvim/pre_configrc.d/*.vim'), '\n')
exec 'source' f
endfor
" ==================================================
" Source the files ~/.vim/vimrc.d/
" ==================================================
for f in split(glob('~/.config/nvim/vimrc.d/*.vim'), '\n')
exe 'source' f
endfor
" ==================================================
" actions to be done after configuration
" ==================================================
for f in split(glob('~/.config/nvim/post_configrc.d/*.vim'), '\n')
exe 'source' f
endfor