diff options
Diffstat (limited to '.exrc')
-rw-r--r-- | .exrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,9 @@ function s:SaveExcursion(cmd) call winrestview(l:win) endfunction -autocmd BufWritePre *.go call s:SaveExcursion('gofmt -s') -autocmd BufWritePre *.templ call s:SaveExcursion('templ fmt') +autocmd BufWritePre *.go + \ call s:SaveExcursion("gofmt -s") +autocmd BufWritePre *.templ + \ call s:SaveExcursion("templ fmt | sed 's/{ {/{{/; s/} }/}}/'") let g:netrw_list_hide .= ',.*_templ.go$' |