Thursday, May 2, 2024

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

There are some specific advantages. Regex handling, for example, as done in Python of Lua is not so suitable to the needs of an editor. You'll end up with many backslashes. Vim script gives you additional tools and implements regex optimally for editor users.

On a different note, learn vim9 script instead of legacy script. It looks familiar if you are from python or javascript, easy to read, compiled and very responsive. Does not make sense to use Python anymore inside Vim. Python has great standard library but most things can be implemented inside vim9 script without much fuss. 

On Wednesday 1 May 2024 at 17:24:17 UTC+2 Jose Caballero wrote:
Thanks a lot everybody for the comments. Very helpful.

Cheers
Jose

El dom, 28 abr 2024 a las 19:51, Jose Caballero (<jcaball...@gmail.com>) escribió:
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

--
--
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/d6f56d4c-d186-48bc-b950-8af8630da271n%40googlegroups.com.

No comments: