NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Even simpler (Score:1)
eval. I have two mappings for doing something with the current file:map ü
map ö
So 'ö' will syntax-check the current file (I hope the German umlauts will be visible to non-Germans as well). The disadvantage of that, I just realize, is that mine has the interpreter to use hardwired in and wont respect the she-bang line.
But indeed, vim is pretty amazing even though I am myself only scratching on the surface when using it. I think Rafael knows some really nifty tricks and has some of them on his webside.
Reply to This
Re:Even simpler (Score:3, Informative)
is even more simple. That's what I use
is also useful. (Quote the pipe with \ in maps.)
My favorite vim map is amazingly simple
vmap * y:let@/=@"<CR>n
Select a word or part of a word in visual mode, enter '*', and voilà, you're searching for this word.
Re:Even simpler (Score:1)