43 Folders

Back to Work

Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.

Join us via RSS, iTunes, or at 5by5.tv.

”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.

Remainders: Vim, The One-Fork Rule, dashes, and ETech, ho!

  • Vim: The Journey Begins - It’s official. I’m learning Vim, one of the storied UNIX text editors that so many geeks live in. My copy of Learning the vi Editor arrived last week, and I’ve been spending at least an hour each night getting through the basics. I can definitely see why this is so popular with people (even though I’m having a heckuva time un-learning five years of what I now realize are Emacs key bindings). It's totally configurable and scriptable, and once you get the hang of switching between command and insert modes, it's just faster than hell. If you want to join in with me for the long walk, ala Oprah’s Book Club, feel free. I’ll be posting on my progress periodically, and have been bookmarking good vi/Vim links to help us out. Also, I do recommend grabbing the Vim carbon app, since it behaves and interacts more like a Mac program and is much easier to customize and use. (Vim studs in the house? Got a good trick I need to know? Dish!)
  • Plan before you buy - I keep running lists of all the features and geegaws that I know I’ll want in the next version of a costly product I’ll need to buy someday—from little stuff like a mobile phone or TV to bigger stuff like a car or a house. Capturing these ideas as they occur to you over 1-5 years is a lot less stressful than having to pore manically over a bunch of spec sheets on the day your cell phone falls in the toilet.
  • The One-Fork Rule - At one point in my third year of college, my housemates and I felt entropy’s hot breath on the back of our necks. As the dishwasher overflowed with week-old plates and the crisper teemed with blue and brown goo, we acknowledged it was time for a radical change. Thus, Richard, Jake, and I made a pact to instantiate what we called “The One-Fork Rule.” Each of us was issued one and only one of each eating tool: cutlery, plate, bowl, glass, etc. We were to bond with our tools like an infantryman with his rifle. If your fork was dirty when it was time to eat, you were to clean it. You were not to breach the sacred seal of the duct-tape-sealed boxes containing all the additional forks and plates. Like all emergency measures “The One-Fork Rule” passed in time, but I can tell you, it really works if you’re ever feeling overwhelmed by the crufty multiples in your kitchen—or elsewhere your life. Consider trying it for a week or so whenever you need to simplify or just get it together.
  • Research dashes - I keep a plaintext file with a long-ass list of stuff to learn, fix, or improve on my computer. Stuff like “learn Perl,” “find out why Mail crashes on CTRL-click,” or “research cheap external hard drives.” These kinds of items represent very low-pressure and low-priority on my radar screen, but I do like to make progress on a few of them from time to time. Try scheduling “a dash”, 2 to 4 hours, twice a month for researching and conquering little stuff that’s been driving you nuts. This not only gives you a chance to review, update, and solve the stuff that’s probably stealing seconds from every day, but you can also start to watch for interesting patterns that might indicate bigger problems and opportunities (“Whoa: time to get a new laptop”).
  • Mass-mailing Customer Service - I sometimes fantasize that I can breach the gates of “Customer Service” at a given company by sending regular old email to several logical addresses. It doesn’t always work—I mean, gracious me, why would you ever want dissatisfied customers to contact you—but I wanted a way to quickly try it without a lot of hassle.

    Fellow TextMate fans can make the following bit into a Snippet and assign it a key command.

    support@${1:`echo $TM_SELECTED_TEXT`}, help@${1:`echo $TM_SELECTED_TEXT`}, customerservice@${1:`echo $TM_SELECTED_TEXT`}, web@${1:`echo $TM_SELECTED_TEXT`}, webhelp@${1:`echo $TM_SELECTED_TEXT`}$0

    In a blank TM document, type the domain of the company (“example.com”), select it, then apply the Snippet via menu or key command to quickly generate a handy, comma-delimited list of potential help sources.

  • General ETech slowdown - Things have gotten a bit busy around here with ETech and a few other pet projects coming to the fore, so I’ve decided to hold off on a couple announcements until next week; sorry to be a tease. Check back next Monday (I hope). Since I’ll be pretty heads-down on all things ETech (and post-ETech catchup) over the next week, the volume here will likely stay fairly quiet until then. Still, I’ll probably be posting occasionally here, and watch for ETech related stuff from me on del.icio.us (link | rss) and Flickr (link | rss). Like my friends currently at SxSW, I'll probably be posting lots of pictures of pleasant-looking people you don’t know eating and sitting in chairs.

Thanks, have a great week, and if you see me in San Diego, please do say hi, and introduce yourself.

GBGames's picture

Another tip is substitution: Say you...

Another tip is substitution:

Say you have a line of text:

Hear we go 'round the mulberry bush.

Now, you'll note that it should be "Here", not "Hear". Simply change in vi!

:s/Hear/Here/

That's it. Now what if you find out that you've misspelled something throughout your document. For instance, you discover that it is spelled "missile" instead of "missle" (something I recently discovered myself).

:%s/missle/missile/g

The % means the entire file (you can actually set a range of line numbers here instead).

The g means globally, not just the first entry on a line.

So if you have the line:

Hear, Hear!

:s/Hear/Here/ will only replace the first one and leave the second one alone. :s/Hear/Here/g will replace all instances on the line.

Substitution is great for the examples above, or if you're writing code and a function or variable name has changed, or any countless situations.

 
EXPLORE 43Folders THE GOOD STUFF

Popular
Today

Popular
Classics

An Oblique Strategy:
Honor thy error as a hidden intention


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Cranking

Merlin used to crank. He’s not cranking any more.

This is an essay about family, priorities, and Shakey’s Pizza, and it’s probably the best thing he’s written. »

Scared Shitless

Merlin’s scared. You’re scared. Everybody is scared.

This is the video of Merlin’s keynote at Webstock 2011. The one where he cried. You should watch it. »