Re:Efficient Editing With vim
by joshuaxls on Friday September 25, 2009 @03:05PM
(#844085)
I would kill for GMail to add vim-like text editing.
[ Parent
| on HN ]
Have you heard of the "It's All Text" Firefox extension? It copies the content of any textarea to a tempfile and opens it up in an external editor of your choice. Writes to the tempfile are copied back to the textarea. It's not quite in-browser vim, but it's pretty close. https://addons.mozilla.org/en-US/firefox/addon/4125
Man this is awesome! I've just written this comment in vim.
Thanks a lot.
Ugh... I decided to edit some more.. Hm.... ughh... more....
Re:Efficient Editing With vim
by anovaskulk on Friday September 25, 2009 @06:21PM
(#844563)
of course, if you use vimperator you have ctrl-i for that
There is also ViewSourceWith which allows the use of different editors.
. . . but Vimperator also Vimperates the entire browser, instead of just the text areas. Unless you're an Emacs zealot, I don't see the downside.
I think we got it by now. Unfortunately, vimperator has quite a few quirks and makes too many changes that cannot easily be undone, which is the reason why I uninstalled it and moved to VSW.
I moved in the opposite direction, from VSW (which I used heavily for a while) to Vimperator.
Try Vimperator. <C-i> opens gvim for the currently-focused text box.
You have made my day.
To make this work with MacVim on a Mac:
:set editor="/Applications/MacVim.app/Contents/MacOS/Vim -g -f"I had no idea this feature existed. I was still using the View Source With extension to open Vim in a terminal emulator window when editing text in a text area, even though I have Vimperator. Now I can do away with the extra extension.
Thank you.
Meh. I just use Mutt.