diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-06-30 17:42:29 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-10 22:08:50 +1200 |
commit | cc43ab2a763fd8aab0eb5b2779abaae0d17dd5a7 (patch) | |
tree | 0667089caa10966100b5b786556705965b202734 | |
parent | Translate autoload/gitcommit.vim to vim9script (diff) | |
download | dotfiles-feature/vim9script.tar.gz dotfiles-feature/vim9script.zip |
Translate autoload/html.vim to vim9scriptfeature/vim9script
-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 |