diff options
Diffstat (limited to 'vim/autoload/html.vim')
-rw-r--r-- | vim/autoload/html.vim | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/vim/autoload/html.vim b/vim/autoload/html.vim index 2ce5288d..895500f7 100644 --- a/vim/autoload/html.vim +++ b/vim/autoload/html.vim @@ -1,6 +1,8 @@ -" Tidy the whole buffer -function! html#Tidy() abort - let view = winsaveview() - %!tidy -quiet - call winrestview(view) -endfunction +vim9script + +# Tidy the whole buffer +export def Tidy(): void + const view = winsaveview() + :%!tidy -quiet + winrestview(view) +enddef |