Permalink
Browse files

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`
  • Loading branch information...
1 parent b9d216a commit a666267322497037c556148f9f4d2f6d8a936dd5 @gylaz gylaz committed Apr 2, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 vimrc
View
@@ -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

0 comments on commit a666267

Please sign in to comment.