News for hackers. Stuff that matters.
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 epe on Thursday October 15, 2009 @04:56PM (#884256)
A lot of them do "just work", and the rest can be made to. See http://www.hcs.harvard.edu/~jrus/site/Cocoa%20Text%20System.... for the full story, or create a ~/Library/KeyBindings/DefaultKeyBinding.dict file that contains something like:

  {
      "~d" = "deleteWordForward:";
      "~f" = "moveWordForward:";
      "~b" = "moveWordBackward:";
  }
The "~" means "Meta"; all this does is set up M-d, M-f, M-b to work like they do in Emacs.
Re:Vi in JavaScript, in your browser by antirez on Thursday October 15, 2009 @08:34AM (#883233)
I think this works everywhere. Being vim a modal editor is not possible to "hide" vim bindings :)
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.