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!
Backspace ended up triggering the browser's back action though. Other than that, this is really nice.
Edit:
After looking at the source, this seems to make use of emscripten to reuse Vim's existing source code. This really makes me wonder what other cool things we can bring over to the client side.
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.
There are browser plugins that let you edit <textarea> elements in your $EDITOR.
I use "It's all text!" in Firefox for this purpose and it works well; the workflow is pretty simple: focus in textarea, hotkey to switch to vim, save & close buffer to switch back to the browser. (not affiliated, just a user).
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 <esc>, which I don't think works in codemirror + vim plugin.
did you port ncurses using emscripten? This could enable bringing a large portion of GNU over to the browser as a cloud-based app. Stallman's nightmare, in other words.
It works amazingly well. However don't split windows then use ctrl-w j to switch. The browser captures ctrl-w first and closes the tab. Other ctrl-* combinations don't work probably for similar reasons.
I really hope someone will patch it into the IPython notebook (or at least enable the codemirror vim keybindings). If I can find the time to learn some javascript I'll give it a go myself.
Lots of comments seem to expect some further web integration with various services but this looks like more of a prototype/proof-of-concept using emscripten.
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.
[+] [-] mqzaidi|12 years ago|reply
[+] [-] tlrobinson|12 years ago|reply
http://www.codinghorror.com/blog/2007/07/the-principle-of-le...
And tlrobinson's Law (or corollary?): Any submission to Hacker News about a novel JavaScript program will contain a comment referencing Atwood's Law.
https://twitter.com/tlrobinson/status/395636386671235072
[+] [-] vezzy-fnord|12 years ago|reply
[+] [-] saosebastiao|12 years ago|reply
[+] [-] perimo|12 years ago|reply
[+] [-] suprjami|12 years ago|reply
[+] [-] bilalq|12 years ago|reply
Edit: After looking at the source, this seems to make use of emscripten to reuse Vim's existing source code. This really makes me wonder what other cool things we can bring over to the client side.
[+] [-] chrismorgan|12 years ago|reply
(I'm a little surprised by this because I've seen so many complaints about it leading to data loss.)
[+] [-] dlau1|12 years ago|reply
Hmm, actually it seems all the motions I tried didn't work :-(
http://vimdoc.sourceforge.net/htmldoc/motion.html#word-motio...
[+] [-] IgorPartola|12 years ago|reply
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.
[+] [-] finnh|12 years ago|reply
I use "It's all text!" in Firefox for this purpose and it works well; the workflow is pretty simple: focus in textarea, hotkey to switch to vim, save & close buffer to switch back to the browser. (not affiliated, just a user).
You do of course lose rich text formatting.
[+] [-] yogo|12 years ago|reply
[+] [-] squigs25|12 years ago|reply
[+] [-] IgorPartola|12 years ago|reply
[+] [-] gnur|12 years ago|reply
[+] [-] justinmk|12 years ago|reply
[+] [-] imslavko|12 years ago|reply
[+] [-] xcyu|12 years ago|reply
[+] [-] bromagosa|12 years ago|reply
Backspace and ESC not working, so after I enter a mode I'm stuck in it forever.
[+] [-] Aqueous|12 years ago|reply
[+] [-] jay-anderson|12 years ago|reply
[+] [-] marijn|12 years ago|reply
[+] [-] dddddannyyyyy|12 years ago|reply
[+] [-] tikwidd|12 years ago|reply
[+] [-] vidarh|12 years ago|reply
[+] [-] JasonFruit|12 years ago|reply
[+] [-] volaski|12 years ago|reply
[+] [-] jbeja|12 years ago|reply
[+] [-] lorenzfx|12 years ago|reply
[+] [-] cauliturtle|12 years ago|reply
[+] [-] siddboots|12 years ago|reply
[+] [-] unknown|12 years ago|reply
[deleted]
[+] [-] ra3|12 years ago|reply
Cool nonetheless.
[+] [-] fhd2|12 years ago|reply
[+] [-] justinmk|12 years ago|reply
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
[+] [-] pablovidal85|12 years ago|reply