Live data from Hacker News

Show HN: vi in your browser - edit files directly from Dropbox, etc

mit.edu

71–80 of 82 posts

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#71
post #65

Somehow online vi clones never bother with implementing ^[ (does the same as escape), which seriously impairs me. Is this impossible to implement?

This is implemented. It works for me in chrome

You're right, thank you.

At least it works on chrome on osx. It didn't work when I tested it earlier in dev channel chrome on windows.

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#73
post #42

Cool! You should add ctrl+c mapping to . Thats how I switch out of modes so that I don't move my left hand out of position.

Re map your caps lock to esc. How often do you use that stupid button anyways?

I would miss caps lock. As soon as I see >2 upper-case letters in a row, I use it. I don't know how people bother to type long acronyms and other words in caps without it.

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#75

Here's what I really, really, want: $('textarea').vim()

"JSVim provides Vim in any textarea" http://ostatic.com/jsvim

so, the links provided on that page don't work. There's a sourceforge project by that name, with some ancient code that won't work in Chrome... do you have a link to a version / repo of that that works in modern browsers?

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#78

Cool. Emacs fans wanting their fix in the browser can checkout ymacs: http://www.ymacs.org/demo/

Dammit Chrome, Y U capture C-n ? :(.

We'd have to convince the chromium powers to reverse their stand on issue 33056 to enable C-n to be captured by a script:

http://code.google.com/p/chromium/issues/detail?id=33056

It's marked "WontFix" but I have it starred anyway.

Hmm, there's also the related issue 119881:

http://code.google.com/p/chromium/issues/detail?id=119881

It's marked "Assigned" so maybe there's still hope.

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#79

Here's what I really, really, want: $('textarea').vim()

You can get something similar to that with the Firefox vimperator plugin. Press ctrl-I in a textarea and a vim pops up. When you close it the text gets copied back. I use it a lot!

that is one of the best things in pentadactyl as well. unfortunately it still tries to use gvim for me. but this can surely be changed somehow.

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#80
post #76
post #72

Nice! Too much vim in my browser at once. Vimium didn't like interacting with the window, and interpreted my typing with a back-button action.

Pentadactyl (Firefox) has a "Pass Through" mode (ctrl-z) for this reason.

but it does not interact nicely anyway. try to use esc to break out of something. (ctrl-] does not work either as it is (rightly so) also captured by pentadactyl.)
Post reply on HN