On 13/02/09 08:43, Raúl Núñez de Arenas Coronado wrote:
> Saluton J.A.J. :)
>
> On Thu, 12 Feb 2009 21:17:07 +0100, J.A.J. Pater dixit:
>> Raúl Núñez de Arenas Coronado schreef:
>>> Anyway, I don't think that plugins is a good way of adding power to
>>> an editor. If only gedit was programmable in the same way of Vim...
>>>
>> Doesn't vim do plugins also? As far as I understand it you can use
>> python together with vim and with gedit. But again it's not the same:
>> Vim has it's own "language" which (to be honest) I don't find really
>> attractive
>
> I didn't choose the correct wording here. I meant "plugins" as in
> "things you *have to* program externally in another language" versus the
> good "the editor has its own language for extensions".
>
> A plugin system requiring compiling the plugins doesn't look good to me,
> but any embedded interpreter is OK. This said, I prefer the editor to
> use an (scriptable) standard language instead of its own language. That
> way you don't have to learn a new language just to configure the editor.
> In short, for writing Vim extensions I would prefer Python and not
> Vimscript, but that's my personal choice.
Please, not Python! Any language where indent levels have a syntactic
function looks like pure sin to me -- even if I usually do indent
program lines for clarity, I prefer the language not to rely on it.
>
> In the end, learning a new language once you already know many is not a
> great deal.
Maybe that's part of why I like Vim scripting language but there's more
to it: its statements are plain Vim commands, and their control
structures (with not only if elseif else but also endif, not only while
but also endwhile, etc., unlike in Python) are straightforward and
purely linguistic.
OTOH, Emacs uses Lisp, which is supposed to be a "standard" language,
one you might "not have to learn" when you first meet Emacs because you
might already know it, but in fact the subjective "ugliness" which I
feel in Lisp's prefixed-Polish notation and its heavily nested
parentheses is part of why I prefer Vim over Emacs. (If you need Polish
notation, make it postfixed, which avoids the need for parentheses
altogether, as in FORTH).
>
> And BTW, it's good to know that gedit plugins can be written in Python,
> I didn't know that. Anyway I'm afraid that if I ever try to write a
> gedit plugin it would be for making it more "vimmie". I don't think it
> is worth the effort, I suppose ;)
>
> Raúl "DervishD" Núñez de Arenas Coronado
Even Vim can have plugins written in Perl, Python, Ruby, Tcl or Scheme,
but each of these requires interfacing with "another language" and
requires an optional feature to be compiled-in. I guess that's why I
prefer vimscript when it comes to programming Vim.
Best regards,
Tony.
--
Bureaucrat, n.:
A person who cuts red tape sideways.
-- J. McCabe
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---