Thanks! I was trying to get my head around why vim mode wasn't working. This works great.
Given the size of the "compiled" file, i'd say it's a bad idea . A better idea would be whatever js editor with a vim mode, not c code compiled with emscriptem like this one.