On 24/12/08 06:28, bill lam wrote:
> On Tue, 23 Dec 2008, Tony Mechelynck wrote:
>> See
>> :help ftplugins
>> :help filetype-plugins
>
> I think that OP does not satisfy with these plugins. I would really
> use language specific pretty print program to do that job. Anyway
> division of labour is what *nix meant, perhaps with the exception of
> emacs.
>
In the case of Vim, division of labour means you can customize the
behaviour of Vim, even separately for different filetypes, just by
dropping an appropriate script in the appropriate directory. Anyone can
write the script (not only Bram and not only you), and no need to recompile.
When the internal :vimgrep command was added (shortly after :helpgrep)
to do essentially what the external :!grep already did, I thought it was
progress: maybe it was less division of labour between Vim and an
external grep program, but no need to search the web for grep if you
were on a platform (such as Windows) where it wasn't standard, and the
regular expressions were Vim regular expressions, which are well
documented in the Vim help and are the same as those used in :s or / And
of course (but you won't regard that as an advantage) the
process-calling overhead was totally eliminated.
Best regards,
Tony.
--
"What the hell are you getting so upset about? I thought you
didn't believe in God."
"I don't," she sobbed, bursting violently into tears, "but the
God I don't believe in is a good God, a just God, a merciful God. He's
not the mean and stupid God you make Him out to be."
-- Joseph Heller, "Catch-22"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---