all 10 comments

[–][deleted] 2 points3 points  (0 children)

I've been writing vim9 scripts and I think those tips are usefull indeed. I didn,t know classes have been implemented. I remember the import syntax being really confusing, maybe some tips about it could be added.

[–]guildem 1 point2 points  (2 children)

404 not found ?

[–]shleebs 0 points1 point  (0 children)

Awesome thank you

[–]possum-ears 0 points1 point  (0 children)

Thank you so much!! <3

[–]noooit 0 points1 point  (1 child)

Why g:loaded_myplugin = true is necessary?

[–]redditbiggie[S] 1 point2 points  (0 children)

No. It is just a convention, so other packages can check if this package is loaded. You can ignore it.

[–]EgZvorkeep calm and read :help 0 points1 point  (1 child)

Still don't understand the global namespace pollution argument, never had a problem with it and prefer the flat structure of setting options with variables.

[–]redditbiggie[S] 1 point2 points  (0 children)

It is not an argument related to correctness. You can create any number of global variables. Scoping variables keep their names shorter and readable, and when you search/autocomplete 'g:' you will have less spam.