Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugin/localvimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if !exists('g:local_vimrc') | let g:local_vimrc = {} | endif | let s:c = g:local
" configuration files. They rarely differ in name.
" Users will instantly understand what it does.
let s:c.names = get(s:c, 'names', ['.vimrc'])
let s:c.overwriter_names = get(s:c, 'overwriter_names', ['.overwrite.vimrc'])

let s:c.hash_fun = get(s:c,'hash_fun','LVRHashOfFile')
let s:c.cache_file = get(s:c,'cache_file', $HOME.'/.vim_local_rc_cache')
Expand Down Expand Up @@ -105,4 +106,6 @@ augroup LOCAL_VIMRC
if ! &autochdir
autocmd BufNewFile,BufRead * SourceLocalVimrcOnce
endif

autocmd VimEnter,BufNewFile,BufRead * call LVRWithCache('LVRRecurseUp', [getcwd(), s:c.overwriter_names] )
augroup end