Saluton Ben :)

On Wed 20 May 2009 04:37 +0200, Ben Fritz <[email protected]> dixit:
> On May 19, 1:02 pm, Raúl Núñez de Arenas Coronado <[email protected]>
> wrote:
>> > You just need to make sure the function returns a null string!
>>
>> Just curious: why has the function to return null? Is it a
>> requirement or just that usually you don't want anything inserted
>> after using the expression register?
>
> Exactly that. If you WANT text inserted by the function, by all means
> have it return something rather than resorting to other methods. If
> all you want to do is call a function, without affecting the text,
> make sure it returns an empty string.

Finally I decided to return an empty string from the function, although
I may change that in the future for the part without the "magic".

Everything works fine, and I'm actually using it right now ;) This reply
is being much easier to write than usual because everytime I use "Enter"
to break a quoted paragraph or to start a new one, things are formatted
the way I like without having to press any additional key.

Before, when I broke a line in a block of quoted text I had to remember
to use "i" and not "o", add the current quote string, a space, an empty
line above and below the reply text (I like to have it separated from
the quoted text by empty lines so it is a separated paragraph), reformat
the quoted text with gqip, etc. It was more or less automatic because I
do it a lot everytime I reply a message, but now it is just a matter of
use "Enter"! And outside quoted text, where the "Enter" key should
behave just like an "Enter" key, it does. Fantastic!!

Thanks a lot!

-- 
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