package publish

This commit is contained in:
Vanessa McHale 2017-12-23 14:54:08 -06:00
parent 44f52e4602
commit f979936b8a
1 changed files with 2 additions and 0 deletions

View File

@ -14,9 +14,11 @@ au BufNewFile,BufRead *.*ats
setlocal commentstring=(*\ %s\ *)
function! AtsFormat()
let cursor = getpos('.')
exec 'normal! gg'
exec 'silent !atsfmt -i ' . expand('%')
exec 'e'
call setpos('.', cursor)
endfunction
if g:ats_autoformat == 1