Skip to content

Commit

Permalink
Use zsh filetype for files under ~/.zlocal
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitley committed Nov 13, 2013
1 parent 46871d9 commit d5b8f3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .vimrc
Expand Up @@ -487,6 +487,7 @@

" Override unknown filetypes in certain zsh directories
autocmd BufNewFile,BufRead */.zfunctions/* if &ft == '' || &ft =~# '^\(conf\)$' | set filetype=zsh | endif
autocmd BufNewFile,BufRead */.zlocal/* if &ft == '' || &ft =~# '^\(conf\)$' | set filetype=zsh | endif

" Close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
Expand Down

0 comments on commit d5b8f3b

Please sign in to comment.