aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-06-30 17:42:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-07-10 22:08:50 +1200
commitcc43ab2a763fd8aab0eb5b2779abaae0d17dd5a7 (patch)
tree0667089caa10966100b5b786556705965b202734
parentTranslate autoload/gitcommit.vim to vim9script (diff)
downloaddotfiles-cc43ab2a763fd8aab0eb5b2779abaae0d17dd5a7.tar.gz
dotfiles-cc43ab2a763fd8aab0eb5b2779abaae0d17dd5a7.zip
Translate autoload/html.vim to vim9script
-rw-r--r--vim/autoload/html.vim14
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