Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ziggy (25)

  (email not shown publicly)
AOL IM: ziggyatpanix (Add Buddy, Send Message)

Journal of ziggy (25)

Friday January 06, 2006
12:07 PM

OSX Hacks

[ #28266 ]

Tired of dealing with writing long messages in a <textarea> on a web page?

Usually, I'll copy out whatever draft I'm working on, fire up a new terminal window, paste the text into vim, edit it, and copy it back.

Copying it back is something of a pain at times. If it's a long bit of text that doesn't fit into a window, I scroll to the top, and copy it back in chunks. About as smooth as coarse grit sandpaper.

Of course, there is a better way -- just filter the entire buffer through pbcopy, and paste it back in one big chunk. (In vim, that translates into ESC H !G pbcopy <CR>)

(If only this hack would work as smoothly in Win* or my Ubuntu config...)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • There are some Firefox extensions which make this even easier. Currently I'm using ViewSourceWith [], which doesn't just do what it says but also provides a way of loading the contents of text areas into external editors.

    You right-click in a text area and select a menu item to fire up the editor, then save stuff in the editor and it gets reflected in the browser. I'm using it on Linux with Vim (gvim).

    Note also that the Vim keystroke H only moves to the top line currently being displayed; to move to the f

  • The xclip command line util lets you do pretty much the same as pbcopy (xclip is also the name of the ubuntu/debian package).

    I just tried ":w !/usr/X11R6/bin/xclip".

    Add "-selection clipboard" to the command line if you prefer ^V to middle click.