off by one for 2007 April 5 (entry 0)

< speaking of boston...
happy birthdays / encrypted Ubuntu >

[Trackback URL for this entry] Thu Apr 05 20:07:57 PST cool vim trick:

So, I've seen vim configured to open and place the cursor in the last cursor position in that file before closing, and at first I thought it was annoying. Then I started to like it. Now I miss it. It was bittersweet though; I thought I would want it enabled in my .vimrc, but would I find myself getting annoyed by it? Intrigued, I went looking for an answer, and instead found that the command '" (that's a single quote followed by a ") jumps to that position -- essentially, when you close vim, it sets a mark for that position to the character " and, as we all know, ' is the "jump to" command. So now I don't have to have it as a default -- but any time I want it, it's there.

Filed under: technical:hack

Links from other weblogs:

Thu May 24 09:25:37: Rape Pics from Rape Pics

Hello


[Main]

Unless otherwise noted, all content licensed by Peter A. H. Peterson
under a Creative Commons License.