Move .vimrc.local to the bottom of .vimrc

Having this file be sourced last allows user to
overwrite the configs in `.vimrc` without having to modify it.

* fixed file's path to work with `filereadable`
This commit is contained in:
Greg Lazarev 2013-04-02 08:17:23 -07:00
parent b9d216a7de
commit a666267322

10
vimrc
View file

@ -70,11 +70,6 @@ set expandtab
" Display extra whitespace
set list listchars=tab:»·,trail
" Local config
if filereadable(".vimrc.local")
source .vimrc.local
endif
" Use Ag (https://github.com/ggreer/the_silver_searcher) instead of Grep when
" available
if executable("ag")
@ -138,3 +133,8 @@ au BufRead,BufNewFile *.md setlocal spell
" Automatically wrap at 80 characters for Markdown
au BufRead,BufNewFile *.md setlocal textwidth=80
" Local config
if filereadable($HOME . "/.vimrc.local")
source ~/.vimrc.local
endif