1
0
Fork 0
mirror of https://github.com/luzifer/vim.git synced 2024-11-09 16:10:00 +00:00

Bind autoformat to file type instead of file extension

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-10-22 22:20:39 +02:00
parent f33a1eb934
commit d83cfad139
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

2
vimrc
View file

@ -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()
"