From fccc5e73a5037de413254b27f6fca72660d96e60 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Tue, 2 Dec 2014 09:29:57 +0100 Subject: vim: added the `.lvimrc` thing. --- vim/autocmd.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim') 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 + -- cgit v1.2.3