Live data from Hacker News

Vim.wasm: Vim Ported to WebAssembly

github.com

11–17 of 17 posts

Re: Vim.wasm: Vim Ported to WebAssembly

#13
post #9
post #7

I'll admit up front to being a wasm cynic, but what exactly is the point of having a text editor trapped in a browser sandbox?

Well if nothing else Vim is very nice for modifying text strings. So for example I might be writing some markdown for a Stack Overflow answer / GitHub issue, if I can quickly open a tab in my browser format all the text nicely - e.g. indenting all the code 4 spaces in for SO and then yank and paste it back into SO. You don't ever need to leave the context of the browser and you get some added text formatting properti…

May as well use a browser with native vim bindings/behaviors (i.e. qutebrowser)

Re: Vim.wasm: Vim Ported to WebAssembly

#14
post #9

Earlier quoted context omitted.

Well if nothing else Vim is very nice for modifying text strings. So for example I might be writing some markdown for a Stack Overflow answer / GitHub issue, if I can quickly open a tab in my browser format all the text nicely - e.g. indenting all the code 4 spaces in for SO and then yank and paste it back into SO. You don't ever need to leave the context of the browser and you get some added text formatting properti…

May as well use a browser with native vim bindings/behaviors (i.e. qutebrowser)

That doesn't give you a nice scratch pad / clipboard though.

Plus the browser bindings are never quite right. Although this implementation is a bit buggy, it's actual Vim. So where as it might not have things like multiple buffers, just being able to edit a single buffer in a familiar environment is a really nice feature to have.

I'm certainly going to give this a shot when I next add an answer to SO.

Re: Vim.wasm: Vim Ported to WebAssembly

#15

It's a little buggy, but being both a vim and web fan I like the idea. With that said, does anyone have insight in how porting something like this works? Are there terminal emulator libraries already for WASM or did they need to make their own? Vim is an interesting case because unlike terminal programs that run in sequence, vim needs to redraw any part of the screen at any time. It strikes me as being more complicat…

I’ve been wondering the same thing, for my project idea #517 of porting Emacs to WASM.

If you find any more info, it’d be awesome if you commented again.

Post reply on HN