summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-07-16 01:50:40 -0500
committerJesse Luehrs <doy@tozt.net>2012-07-16 02:45:06 -0500
commit165332e2969df189adb52b066b51786009388cc9 (patch)
treef65bca15925ba217392fc49f300c9434651c35bf /vimrc
parent7e73f6c0f1219e116343b5cb6176266cc8419a41 (diff)
downloadconf-165332e2969df189adb52b066b51786009388cc9.tar.gz
conf-165332e2969df189adb52b066b51786009388cc9.zip
a few more vimrc tweaks
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc22
1 files changed, 20 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index b548f95..3aad03d 100644
--- a/vimrc
+++ b/vimrc
@@ -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+=: