-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
37 lines (26 loc) · 1.25 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
31
32
33
34
35
36
set background=dark
" Include shell and OS settings and utility functions
exe 'source' expand(stdpath('config').'/'.'init.vim.d/basic.vim')
" Install vim-plug if not installed
if empty(glob(stdpath('data').'/site/autoload/plug.vim'))
if WINDOWS()
exe "!iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | ni \"$env:LOCALAPPDATA/nvim-data/site/autoload/plug.vim\" -Force"
else
exe "!curl -fLo" stdpath('config').'/site/autoload/plug.vim' "--create-dirs"
\ "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
endif
autocmd VimEnter * PlugInstall
endif
" Setup directories
call InitializeDirectories()
" Load plugins
exe 'source' expand(stdpath('config').'/'.'init.vim.d/pluginlist.vim')
function! HasPlugin(name)
return isdirectory(expand(stdpath('config').'/plugged/'.a:name.'/')) && has_key(g:plugs, a:name)
endfunction
" Start Configuration
exe 'source' expand(stdpath('config').'/'.'init.vim.d/generalsettings.vim')
exe 'source' expand(stdpath('config').'/'.'init.vim.d/ui.vim')
exe 'source' expand(stdpath('config').'/'.'init.vim.d/keymappings.vim')
exe 'source' expand(stdpath('config').'/'.'init.vim.d/pluginsettings.vim')
" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={,} foldlevel=9 foldmethod=marker :