mirror of
https://github.com/luzifer/vim.git
synced 2024-11-14 02:02:45 +00:00
Bind autoformat to file type instead of file extension
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f33a1eb934
commit
d83cfad139
1 changed files with 1 additions and 1 deletions
2
vimrc
2
vimrc
|
@ -1010,7 +1010,7 @@ let g:go_autodetect_gopath = 0
|
||||||
" Autoformat configuration
|
" Autoformat configuration
|
||||||
"
|
"
|
||||||
|
|
||||||
au BufWritePre *.py,*.js :Autoformat
|
au FileType python,javascript au BufWritePre <buffer> :Autoformat
|
||||||
au FileType sh,zsh au BufWritePre <buffer> :call SHFmt()
|
au FileType sh,zsh au BufWritePre <buffer> :call SHFmt()
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in a new issue