-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
28 lines (24 loc) · 778 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
26
27
28
" configure leader
nnoremap <SPACE> <NOP>
let mapleader = ","
set timeoutlen=375
" source core config files
function! s:SourceConfigFilesIn(directory)
let directory_splat = '~/.vim/' . a:directory . '/*'
for config_file in split(glob(directory_splat), '\n')
if filereadable(config_file)
execute 'source' config_file
endif
endfor
endfunction
" load plugins
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 --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/bundle')
call s:SourceConfigFilesIn('plugrc')
call plug#end()
" source additional config files
call s:SourceConfigFilesIn('configrc')