]> git.draconx.ca Git - vimconf.git/commitdiff
Add filetype rules for zsh config files.
authorNick Bowler <nbowler@elliptictech.com>
Fri, 10 Sep 2010 19:29:03 +0000 (15:29 -0400)
committerNick Bowler <nbowler@elliptictech.com>
Fri, 10 Sep 2010 19:30:35 +0000 (15:30 -0400)
For some reason, some (but not all) of my config files don't get their
filetype set correctly.  Fix that up.

vimrc

diff --git a/vimrc b/vimrc
index 025928c2b07e8310af9fd2e0481e14d9c42a6730..ed55677feafc694823171378fd92e10da78fe073 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -9,6 +9,7 @@ set mouse=a
 
 set nowrap listchars=eol:$,precedes:<,extends:@
 
+au BufNewFile,BufRead {.,}z{profile,logout,login,shrc,shenv} set filetype=zsh
 au BufNewFile,BufRead *.scheme set filetype=scheme
 au BufNewFile,BufRead *.sig    set filetype=sml
 au BufNewFile,BufRead *.cabal  set filetype=cabal