augroup vimrc autocmd! augroup END let g:dotvim = expand(':p:h') let g:vimrc = expand(':p') let g:vim_type = has('nvim') ? 'nvim' : 'vim' let g:mapleader = "'" let g:maplocalleader = "," if !v:vim_did_enter source ~/.vim/conf/dein.vim endif if getftype('/tmp/templug') ==# 'dir' let &runtimepath = join(glob('/tmp/templug/*', 1, 1), ',') .. ',' .. &runtimepath endif filetype plugin indent on syntax enable call vimrc#load_scripts('~/.vim/conf/rc/**/*.vim') call vimrc#load_scripts(printf('~/.vim/conf/%s/rc/**/*.vim', g:vim_type)) call vimrc#load_scripts('~/.vim/conf/plug/**/*.vim') call vimrc#load_scripts(printf('~/.vim/conf/%s/plug/**/*.vim', g:vim_type)) if getftype(g:dotvim .. '/local.vim') ==# 'file' source ~/.vim/local.vim endif if empty(get(g:, 'colors_name', '')) colorscheme morning endif