summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-05-16 21:37:12 -0500
committerJesse Luehrs <doy@tozt.net>2011-05-16 21:39:53 -0500
commit6ab6d4d92fa18b578a50f738817e050f55458998 (patch)
tree5f04b9f439bc6505842610eee035343d10e953ae /vimrc
parentde07da21a14bc20c7ff92ee72e25b964d11eea42 (diff)
downloadconf-6ab6d4d92fa18b578a50f738817e050f55458998.tar.gz
conf-6ab6d4d92fa18b578a50f738817e050f55458998.zip
exclude dzil build stuff when in a dzil-managed dir
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc20
1 files changed, 19 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 47be5ba..300af68 100644
--- a/vimrc
+++ b/vimrc
@@ -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'