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:
parent
b9d216a7de
commit
a666267322
1 changed files with 5 additions and 5 deletions
10
vimrc
10
vimrc
|
@ -70,11 +70,6 @@ set expandtab
|
||||||
" Display extra whitespace
|
" Display extra whitespace
|
||||||
set list listchars=tab:»·,trail:·
|
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
|
" Use Ag (https://github.com/ggreer/the_silver_searcher) instead of Grep when
|
||||||
" available
|
" available
|
||||||
if executable("ag")
|
if executable("ag")
|
||||||
|
@ -138,3 +133,8 @@ au BufRead,BufNewFile *.md setlocal spell
|
||||||
|
|
||||||
" Automatically wrap at 80 characters for Markdown
|
" Automatically wrap at 80 characters for Markdown
|
||||||
au BufRead,BufNewFile *.md setlocal textwidth=80
|
au BufRead,BufNewFile *.md setlocal textwidth=80
|
||||||
|
|
||||||
|
" Local config
|
||||||
|
if filereadable($HOME . "/.vimrc.local")
|
||||||
|
source ~/.vimrc.local
|
||||||
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue