Saluton Patrick :)

Patrick Gen-Paul  <[email protected]> skribis:
> Raúl Núñez de Arenas Coronado wrote:
>> Saluton Patrick :)
>
> hmm.. esperantista?

Trying to ;)

>> Patrick Gen-Paul  <[email protected]> skribis:
>>> Currently, I append them to my ~/.vimrc but I guess it would be
>>> preferable to place them in a separate file (or files) and source it
>>> via commands in my vimrc?
>>>
>>> Or, should I create a plugin for each function (or functionally
>>> related functions) and place the code in my ~/.vim/plugin directory?
>>
>> My policy, which may be utterly wrong, is to put them in my ~/.vimrc
>> if the function is generic (that is, not related to any particular
>> filetype), and in some "after" file if it has to do with some
>> particular filetype. Using a plugin for defining some functions is a
>> bit overkill for me and would require much more effort than I'm
>> willing to put ;)
>
> Dunno if it's wrong but it makes excellent sense.

The problem is that it doesn't scale well. If you write a lot of
*generic* functions, not applicable to any particular filetype, your
best bet is probably to put them in autoload plugins or something along
these lines.

> I guess one-liners could go into one's .vimrc, but anything much
> bigger like 20-30 lines chunks would soon become unmanageable.

Yes, that's another point. My functions (the generic ones, at least) are
pretty short, maybe 10 lines maximum, so they don't clutter my ~/.vimrc,
but if you have maybe 10 functions with let's say... 25 lines each,
that's *a lot* of clutter. In that case, although the number of
functions is pretty low, I would put them in separate files and I would
source them (or use the autoload plugin solution, which looks a bit
overkill to me, but then again I haven't had startup speed problems with
Vim yet).

> P.S. [OT] What mailer do you use? Your signature comes out a different
> color, not that I mind.. just curious how it's done your end.

My mailer is GMail directly. I edit my email with Vim using a Firefox
extension because I can't stand the GMail builtin editor (it is
rich-text or whatever) or the Firefox editor for textboxes (which is way
too simple). So, my email should be in plain text, with no coloring set
up in my side.

But, whenever I edit email with Vim (this one, for example), my
signature appears in a different color because the syntax highlighting,
and some MUAs (mutt, Claws if I recall correctly, maybe others) color
signatures differently if they detect the magic "-- " at the start of a
line. Please note the space after "--", because it is part of the magic.
If that separator is detected, the rest of the message is considered a
signature and rendered in a different color, just like in Vim.

So, no effort on my end except adding "-- " and the signature. A job
that, by the way, is done by Vim entirely. Vim also takes the job of
creating the salute and the attribution line automatically using the
information contained in the original attribution line put there by
GMail. Vim makes GMail tolerable as a MUA ;)

-- 
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to