Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.
Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.
”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!
Merlin Mann | Mar 14 2005
Thanks, have a great week, and if you see me in San Diego, please do say hi, and introduce yourself. 79 Comments
POSTED IN:
I've just discovered some really...Submitted by Erik Westra (not verified) on March 24, 2005 - 10:59am.
I've just discovered some really nice ways of getting VIM under OSX to work the way I want it to, so I thought I'd share my discoveries... Firstly, there's: set showcmd which tells vim to show lots of useful information, like the number of characters you've selected, and the prefix you've typed for a command (eg, I often go "77a-", which adds a line of 77 hyphens to my document). With "showcmd" set, you see the "77" as you type the command -- most handy! There's also the: map ddp map ddP commands, which I've got permanently set in my _vimrc file (I mentioned these on the 43 folders mailing list, but thought I'd repeat them here as this seems to be the more "official" place to put vim tips). With these, you can quickly rearrange lines of text by pressing control up-arrow and control down-arrow to move a line of text up or down. I use this all the time to rearrange my To-Do/GTD lists. Now, for my big "aha" -- I've also put the following into my _vimrc... autocmd BufReadPost *.txt set formatoptions+=a What this does is set up vim to work like a normal word processor -- whenever I'm editing a text file, the "formatoptions+=a" bit tells vim to automatically rearrange the text into paragraphs as I type. As I add and delete text, the line breaks in the paragraphs are rearranged automatically -- no more constantly having to type "gq" to reformat text after editing a paragraph! Just thought I'd add my $0.02 worth to the amazing tips other have already posted. Hopefully all these tips will be put into the 43folders wiki at some stage -- it'd be great to have a "vim tips" page we could all add to as we discover new things... » POSTED IN:
|
|
EXPLORE 43Folders | THE GOOD STUFF |