-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
33 lines (27 loc) · 894 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
29
30
31
32
33
"
" Vim Configuration
" This file is sourced by .config/nvim/init.vim for parity.
"
" Use the improved vi
" Must come first because it changes other options.
set nocompatible
" handle anyone crazy enough to use a non-POSIX compatible shell like fish
set shell=/bin/sh
set encoding=UTF-8
"
" User settings
" There is probably a better convention for these.
"
function! SourceIfExists(file)
if filereadable(expand(a:file))
exe 'source' a:file
endif
endfunction
call SourceIfExists('$HOME/.vim/user/plugins.vim')
call SourceIfExists('$HOME/.vim/user/settings.vim')
call SourceIfExists('$HOME/.vim/user/functions.vim')
call SourceIfExists('$HOME/.vim/user/autocmds.vim')
call SourceIfExists('$HOME/.vim/user/theme.vim')
call SourceIfExists('$HOME/.vim/user/plugin-settings.vim')
call SourceIfExists('$HOME/.vim/user/maps.vim')
call SourceIfExists('$HOME/.vim/user/abbreviations.vim')