Live data from Hacker News

Vim.js - JavaScript port of Vim

coolwanglu.github.io

81–90 of 107 posts

Re: Vim.js - JavaScript port of Vim

#83

This... Plus Gmail... Man that's fantastic. I have sent an embarrassing number of emails that end with :wq. Once you try Vim, it's really hard to go back. I also tried using mutt instead of GMail, and while it gets me 90% of the way there, the lack of graphical preview of attachments and things like filters and HelloSign make GMails web interface more useful.

Yep, I constantly have to delete jj at the end of emails. The cool thing about this port is that mapping seems to work. Naturally the first thing I tried was :inoremap jj , which I don't think works in codemirror + vim plugin.

Re: Vim.js - JavaScript port of Vim

#84

This... Plus Gmail... Man that's fantastic. I have sent an embarrassing number of emails that end with :wq. Once you try Vim, it's really hard to go back. I also tried using mutt instead of GMail, and while it gets me 90% of the way there, the lack of graphical preview of attachments and things like filters and HelloSign make GMails web interface more useful.

Who uses :wq when you can use :x?

Re: Vim.js - JavaScript port of Vim

#85

This... Plus Gmail... Man that's fantastic. I have sent an embarrassing number of emails that end with :wq. Once you try Vim, it's really hard to go back. I also tried using mutt instead of GMail, and while it gets me 90% of the way there, the lack of graphical preview of attachments and things like filters and HelloSign make GMails web interface more useful.

Who uses :wq when you can use :x?

Or ZZ

Re: Vim.js - JavaScript port of Vim

#86

This... Plus Gmail... Man that's fantastic. I have sent an embarrassing number of emails that end with :wq. Once you try Vim, it's really hard to go back. I also tried using mutt instead of GMail, and while it gets me 90% of the way there, the lack of graphical preview of attachments and things like filters and HelloSign make GMails web interface more useful.

Who uses :wq when you can use :x?

Who uses :x, when you can ZZ?

Re: Vim.js - JavaScript port of Vim

#88

I'm normally unimpressed by applications ported to javascript. However, this actually has me excited. I would love to be able to edit all my Dropbox text files with a web interface. If anyone here works for Dropbox, I beg you to integrate this!

If it's possible to integrate this with BrowserFS, you'd be all set: https://github.com/jvilk/BrowserFS/#browserfs

Re: Vim.js - JavaScript port of Vim

#90
post #47

While this is impressive, I find it surprisingly slow compared to much more demanding applications with bigger code bases compiled via Emscripten. Any ideas why?

Well, I don't know what you mean by slow, but it could be the use of setTimeout() every 10ms to simulate[1] Vim's synchronous busy-wait is affecting responsiveness. Lu mentioned[2] on vim_dev that it was necessary to write a hack for this portion. [1] https://github.com/coolwanglu/vim.js/blob/master/web/vim_lib... [2] https://groups.google.com/forum/#!topic/vim_dev/AQTHbUHijgg

This also does not seem to be compiled with full optimizations, standard emscripten -O2 output looks somewhat different than what is here.
Post reply on HN