Skip to content

Commit

Permalink
Bind autoformat to file type instead of file extension
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Oct 22, 2018
1 parent f33a1eb commit d83cfad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ let g:go_autodetect_gopath = 0
" Autoformat configuration
"

au BufWritePre *.py,*.js :Autoformat
au FileType python,javascript au BufWritePre <buffer> :Autoformat
au FileType sh,zsh au BufWritePre <buffer> :call SHFmt()

"
Expand Down

0 comments on commit d83cfad

Please sign in to comment.