Re:Vi in JavaScript, in your browser
by antirez on Thursday October 15, 2009 @04:07AM
(#882973)
Nice, what is missing is a way to have vim (or a decent approximation) in every text area, embedded. There are different solutions and extensions but nothing comparable to vim running in the text area box.
While I'm at it, another thing I miss so much is the ability to tell Firefox (or other browsers) that I write in two languages (Italian and English) so it could automagically switch spell correction dictionary auto sensing the language. This problem is common to at least half the people living in Europe.
Re:Vi in JavaScript, in your browser
by nirmal on Thursday October 15, 2009 @08:15AM
(#883220)
This comment made me realize that I've been using emacs commands for textareas in Safari/Firefox without thinking about it. Most of them seem to be there, at least for moving around within the text. Does this just work under OS X?
Re:Vi in JavaScript, in your browser
by stcredzero on Thursday October 15, 2009 @09:12PM
(#884585)
Nice, what is missing is a way to have vim (or a decent approximation) in every text area, embedded
This sounds like something OS X or another ambitious and slick operating system should provide: the ability to use the text editing engine of your choice in every textarea on your machine.
Re:Vi in JavaScript, in your browser
by rudenoise on Thursday October 15, 2009 @05:03AM
(#883023)
Are there any other similar projects out there?
I was thinking about attempting a VIM plug-in for Bespin (https://bespin.mozilla.com/) that could also be used as an FCK/TinyMCE style textarea add-on.
Re:Vi in JavaScript, in your browser
by manish on Thursday October 15, 2009 @03:39AM
(#882954)
Wow, simply great. It would be nice to open files in your computer and use them. I could not open any file by
:n filename command. Also record command, which is very useful is missing. I am not sure for what this can be used?
Re:Vi in JavaScript, in your browser
by past on Thursday October 15, 2009 @04:04AM
(#882971)
It can be used for adding a vi mode to any web page editing scenario you might have a need for. If you want to edit local files from your browser, I've made a Firefox extension that does just that:
Re:Vi in JavaScript, in your browser
by cturner on Thursday October 15, 2009 @06:03AM
(#883081)
> Is that normal?
Yes. You're not "meant" to be able to backspace over content that wasn't added in your current transaction. Which is really inconvenient, because if you delete things when you're in command mode then it overwrites what's in your buffer, which is often convenient.
While I'm at it, another thing I miss so much is the ability to tell Firefox (or other browsers) that I write in two languages (Italian and English) so it could automagically switch spell correction dictionary auto sensing the language. This problem is common to at least half the people living in Europe.
This sounds like something OS X or another ambitious and slick operating system should provide: the ability to use the text editing engine of your choice in every textarea on your machine.
I was thinking about attempting a VIM plug-in for Bespin (https://bespin.mozilla.com/) that could also be used as an FCK/TinyMCE style textarea add-on.
http://past.github.com/despin/
It doesn't have a vi mode (yet) and lots of other things, but I'd be interested to see if people found it interesting and useful.
1) I cannot delete the end of a line with this thing. Is that normal? Im only used to VIM so this might be a VI thing.
2) CLTR+ does not scale up the font size
Yes. You're not "meant" to be able to backspace over content that wasn't added in your current transaction. Which is really inconvenient, because if you delete things when you're in command mode then it overwrites what's in your buffer, which is often convenient.
In vim you can simulate this by doing
running iceweasel 3.0.6
I think HN is finally mainstream.