Live data from Hacker News

Vim.js - JavaScript port of Vim

coolwanglu.github.io

31–40 of 107 posts

Re: Vim.js - JavaScript port of Vim

#32

Earlier quoted context omitted.

if you use vimium/vimperator/something else you can do shift+H to go backwards, shift+L to go forward.

Which would require me to press two keys instead of one.

yeah but not to move your hand if you're on the homerow

Re: Vim.js - JavaScript port of Vim

#34
post #8

Earlier quoted context omitted.

Chrome and Firefox. Probably IE too.

Not on Linux, where the 'previous page' action is mapped to Alt-left by default. After being initially frustrated, I got really used to Alt-Left for going back. The reasoning behind it is pretty smart too, because numerous times backspace can result in the loss of data, like when you're filling up a form and you hit backspace outside of a text box.

Indeed, I like the 'alt-left' keyboard shortcut, though I especially like it because it does the same thing in both Chrome and Firefox on both Windows and Linux! Yay for consistency!

Re: Vim.js - JavaScript port of Vim

#36
post #29

Rule 34 for software: If it exists, there IS a javascript port of it.

That would be Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

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

Re: Vim.js - JavaScript port of Vim

#37
post #3

Really cool! It even supported doing things like: inoremap jj `^ 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.

I tried typing some gibberish and one shortcut that seems to be a bit broken for me is yiw diw

Hmm, actually it seems all the motions I tried didn't work :-(

http://vimdoc.sourceforge.net/htmldoc/motion.html#word-motio...

Post reply on HN