Please don't change endfunction/endif/endwhile... it makes it hard for plugins like match-up to make % work. Also complicates things for very little benefit, at best saving a tiny amount of typing, at worst makes it easy to lose track of scopes.
On Wed, Dec 18, 2019, 4:27 PM Bram Moolenaar <[email protected]> wrote: > > Wei Zhang wrote: > > > Only one request, can we just replace all the endif endwhile endfor > > endfunction with a single end statement? > > It would be even more readable if we use "}": > > if cond > do something > } > > for i in list > do something > } > > { > let local = 0 > ... > } > > "endfunction" should probably be kept, otherwise a missing "}" or "end" > is hard to locate. > > -- > FATHER: One day, lad, all this will be yours ... > PRINCE: What - the curtains? > "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES > LTD > > /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net > \\\ > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ > \\\ > \\\ an exciting new programming language -- http://www.Zimbu.org > /// > \\\ help me help AIDS victims -- http://ICCF-Holland.org > /// > > -- > -- > You received this message from the "vim_dev" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_dev/201912182127.xBILR5q1006083%40masaka.moolenaar.net > . > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAL%2BVoZ4_apZnw8107nTQTzWzGpnvtOQzNT4iNiDzv0zFYWzTXA%40mail.gmail.com.
