aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-12-02 09:29:57 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2014-12-02 09:29:57 +0100
commitfccc5e73a5037de413254b27f6fca72660d96e60 (patch)
tree16e5e752534d0c6d7e0cf52965615aba1e04bd01 /vim
parent2c1095af1c6757782469f472bd8ef42136a2c10c (diff)
downloaddotfiles-fccc5e73a5037de413254b27f6fca72660d96e60.tar.gz
dotfiles-fccc5e73a5037de413254b27f6fca72660d96e60.zip
vim: added the `.lvimrc` thing.
Diffstat (limited to 'vim')
-rw-r--r--vim/autocmd.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/autocmd.vim b/vim/autocmd.vim
index d673b27..c2bab95 100644
--- a/vim/autocmd.vim
+++ b/vim/autocmd.vim
@@ -15,3 +15,9 @@ autocmd FileType javascript setlocal shiftwidth=2 tabstop=2
" Clean up trailing whitespaces on save.
autocmd BufWritePre * :%s/\s\+$//e
+" If there is a .lvimrc, source it. Note that this works best by calling vim on
+" the root of your project.
+if filereadable(".lvimrc")
+ so .lvimrc
+endif
+