Sunday, April 28, 2024

Re: Why vimscript instead of another language? A philosophical or a technical question?

On Sun, Apr 28, 2024 at 9:27 PM Jose Caballero <jcaballero.hep@gmail.com> wrote:
>
> Hello,
>
> I am just curious about it. I have just been experimenting with it, and it is possible to send the selected range of lines, or even the entire buffer, to an external script. Right? In my case, in python.
> I find python, or even bash, to be more readable and friendly than vimscript.
>
> What would be the advantage of keeping using vimscript instead of writing plugins in your favourite language? What am I missing?
>
> Cheers,
> Jose

What you're missing, I think, is that your favourite language might
not be my favourite language. Indeed, it is possible to write plugins
in Python, Perl, Ruby, Lua, Mzscheme, Tcl, etc., but only a Vim
compiled with the corresponding interpreter interface built-in could
use them; while Vim script uses as commands the very same verbs used
as ex-commands when running Vim interactively, and it is guaranteed
that every Vim executable can use it. For all these reasons (and also
because all these additional languages are foreign to me while I had
to learn Vim ex-commands anyway in order to use it interactively),
_my_ favourite language for use with Vim is Vim script itself.

Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXv2xW9%3Dm1HvsA%3Di3mA2rs-KBgVFWVbPWJ2DC%2B3SbpowfQ%40mail.gmail.com.

No comments:

Post a Comment