diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-07-16 01:50:40 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-07-16 02:45:06 -0500 |
commit | 165332e2969df189adb52b066b51786009388cc9 (patch) | |
tree | f65bca15925ba217392fc49f300c9434651c35bf /vimrc | |
parent | 7e73f6c0f1219e116343b5cb6176266cc8419a41 (diff) | |
download | conf-165332e2969df189adb52b066b51786009388cc9.tar.gz conf-165332e2969df189adb52b066b51786009388cc9.zip |
a few more vimrc tweaks
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -133,8 +133,23 @@ set backspace=indent,eol,start " tab completion in ex mode set wildmenu -" when doing tab completion, ignore files with any of the following extensions -set wildignore+=.log,.out,.o +" when doing tab completion, ignore files that match any of these +set wildignore+=*.o,.git/*,.svn/*,blib/* +" exclusions {{{ +function! s:set_excludes() + if filereadable("dist.ini") + for line in readfile("dist.ini", '', 10) + let name = matchstr(line, '\s*name\s*=\s*\zs.*') + if name != "" + exe 'set wildignore+=' . name . '-*' + break + endif + endfor + endif +endfunction +autocmd BufReadPost * call <SID>set_excludes() +call <SID>set_excludes() +" }}} " tab completions should ignore case if exists("+wildignorecase") @@ -144,6 +159,9 @@ endif " remember lotsa fun stuff set viminfo=!,'1000,f1,/1000,:1000,<1000,@1000,h,n~/.viminfo +" more stuff to remember +set history=1000 + " add : as a file-name character (allow gf to work with http://foo.bar/) set isfname+=: |