Roleplaying Editors and Dreams
- VIM is really feeling like an RPG to me. Today I just gained a level, maybe two, thanks to SuperTab and [Tip #173]t173. Who knows, maybe I'll even be giving up the cursor keys soon and my original HHKB, sans-inverted-T, will make more sense.
-
Speaking of RPGs: Last night, I had a hyper-realistic dream that some college roommates, who'd started a LARP of their own design back in the mid-90s, had gotten back together to start a new authorized LARP based on World of Warcraft.
It was $1400 per month to play--which seemed reasonable at the time--and took place 24/7 on the grounds of the Michigan Renaissance Festival in Holly. Strangely, this was within walking distance of our old townhouse in Royal Oak. I jumped into the game to play some kind of "wind mage", dressed up like a 3-foot-tall leprechaun. (Yes, somehow my costume reduced my height by 3 feet or so.)
There's no real point to this, other than I felt I needed to share its utter depths of nerdity. Oh, and although I've watched someone play WoW, I don't actually have a machine capable of running it--so I don't even know if it features leprechaun wind mages.
Archived Comments
(1) Substitute:
substitute on the current line:
:s/search for this/replace with this/
substitute on all lines:
:%s/search for this/replace with this/
find all matches on each line, not just the first one:
:%s/search for this/replace with this/g
prompt to confirm each replace:
:%s/search/replace/gc
case insensitive
:%s/search/replace/gi
:help substitute for more
(2) Execute commands on matching lines
:normal command means to execute commands as if you typed them in, eg: 'dd' or 'yyp', etc. With standard {range} operators, you can use :normal to execute a command on every matching line:
delete every line that contains the word "foo"
:/foo/normal dd
I find :normal really useful.