diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-05-16 21:37:12 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-05-16 21:39:53 -0500 |
commit | 6ab6d4d92fa18b578a50f738817e050f55458998 (patch) | |
tree | 5f04b9f439bc6505842610eee035343d10e953ae /vimrc | |
parent | de07da21a14bc20c7ff92ee72e25b964d11eea42 (diff) | |
download | conf-6ab6d4d92fa18b578a50f738817e050f55458998.tar.gz conf-6ab6d4d92fa18b578a50f738817e050f55458998.zip |
exclude dzil build stuff when in a dzil-managed dir
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -561,7 +561,25 @@ let g:fuf_keyPrevPattern = '<Up>' let g:fuf_keyNextPattern = '<Down>' let g:fuf_dataDir = '~/.vim/fuf-data' let g:fuf_enumeratingLimit = 10 -let g:fuf_coveragefile_exclude = '\(^\|/\)\.\|^\(blib\|nytprof\)\|\.\(o\|exe\|dll\|bak\|orig\|swp\|bs\)$\|\~$' +" exclusions {{{ +function! s:set_excludes() + let fuf_coveragefile_exclude_base = '\(' + \. '\(^\|/\)\.\|' + \. '\~$\|' + \. '^\(blib\|nytprof\)\|' + \. '\.\(' + \. 'o\|exe\|dll\|bak\|orig\|swp\|bs\|' + \. 'png\|jpg\|gif\|pdf\|doc\|d\|vsprops\|pbxproj\|sln' + \. '\)$' + \. '\)' + let g:fuf_coveragefile_exclude = fuf_coveragefile_exclude_base + if filereadable("dist.ini") + let g:fuf_coveragefile_exclude .= '\|^' . fnamemodify('.', ':p:h:t') . '-' + endif +endfunction +autocmd BufReadPost * call <SID>set_excludes() +" call <SID>set_excludes() +" }}} " }}} " Yankring {{{ let g:yankring_history_dir = '~/.vim/yankring-data' |