> On 28 Mar 2019, at 15.01, Andrey <butir...@gmail.com> wrote: > > On Monday, 4 March 2019 15:09:36 UTC+3, Bob Pepin wrote: >> Hi, >> This is to announce the release of an ECMAScript scripting interface for >> Vim. >> >> Why? Because it seemed like the right thing to do. >> > > Thumbs up for any common language support! > I would love if those languages could be used as much effectively as > Vimscript itself for Vim programming. >
I tried to make all Vim builtins also ES builtins so that simple scripts look almost the same in ES as in Vimscript. Have a look at https://github.com/bobpepin/vim/blob/duktape/runtime/indent/python.js, autogenerated from the corresponding .vim file, https://github.com/bobpepin/vim/blob/duktape/runtime/indent/python.vim. (Caveat: no datatypes requiring automatic memory management can be passed between Vimscript builtins and ES) I am playing around with the asyn/await features from recent ES versions together with Vim channels and events (keyboard input/autocmds) right now, imho it’s significantly more effective than Vimscript as soon as callbacks get involved. For a sample JSP implementation, see https://github.com/bobpepin/vim/blob/duktape/src/jsp-jsonrpc.ts. Best, Bob -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.