Tuesday, March 5, 2019

Re: Announce: ECMAScript interface for Vim

On 5 Mar 2019, at 12.53, Bram Moolenaar <Bram@moolenaar.net> wrote:

I wonder, is this also possible for Typescript?  It's like a better
version of Javascript, and its popularity is growing.

Looks nice, especially since it seems to include all the latest versions of ES. It should be possible in principle, since the Typescript compiler is itself compiled to ES5 and has an API for transpiling. It should also be possible to plug in Vim functions for interfacing with the filesystem, something along the lines of https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#customizing-module-resolution.

How well this works in practice remains to be seen, I will try to play around with it a bit.

Best,
Bob

No comments: