Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
OK, this is not behavior I was expecting. Sometimes I'll post code in places where I don't have code or ecode tags, so I need to manually encode the '&', '<' and '>' symbols. That gets very annoying, particularly since I often find myself encoding the ampersand last, screwing up the other encodings and having to redo it. I figured that a simple vim mapping would do this:
noremap
,e :%s/&/\&/g | %s/>/\>/g |%s/</\</g<cr>
However, that fails because as soon as I source my
noremap
,e :exe '%s/&/\&/g | %s/>/\>/g |%s/</\</g'<cr>
That does the same thing. What gives? Am I going to have to write a function for this?
Putting bars in maps (Score:2)
Re:Putting bars in maps (Score:2)
How did you find that in the fine manual? "help |" doesn't help, nor does my various attempts at escaping the bar. (Well, I've had trouble escaping bars before, but I equivocate ...)
Re:Putting bars in maps (Score:2)
"nor do my various attempts".
Re:Putting bars in maps (Score:2)
I've actually read the entire manual (because I'm writing a book on Vim), so it was more a matter of remembering than finding.
If I hadn't, then I would have typed:
(where that
<TAB>is literally the act of hitting the TAB key). That would have produced:Re:Putting bars in maps (Score:2)
A book on vim? Thank god. We've desperately needed a really good one. A friend of mine is kind of a vim god and people keep telling him he needs to write such a book, but it's good to know it's actually going to get written. I'll buy it!
Re:Putting bars in maps (Score:2)
Re:Putting bars in maps (Score:2)