[ANN] notmuch-vim 0.7 released

2021-07-07 Thread Felipe Contreras
Hello, notmuch-vim is a fully-functional mail user agent implemented in vim. It uses as inspiration other text-based MUAs such as mutt and sup, but it's better because it uses two amazing programs: vim and notmuch. It by itself doesn't do much, following the UNIX philosophy you need other tools t

Re: Help converting function to Vim9 script

2021-07-07 Thread lgc
> I try not to use global variables within functions. Is there an > alternative enabling non-use of global variables? Yes, use block-local, function-local, or script-local variables. Those don't need any explicit scope. > Also, I thought the new Vim9 Vimscript was getting rid of the need for >

Re: Help converting function to Vim9 script

2021-07-07 Thread lgc
> Any idea what would be the best way to convert the snippet above? Move the `i` variable in the script-local namespace. That is, don't declare it inside the function, but at the script-level. You can still reset it to a default value whenever the function is invoked: vim9script var i