-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[vim9script/en] add vim9script #5215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
009a5f8 to
a60f587
Compare
|
Could the failing |
|
@yegappan, thank you for the guide for Python coders that now served as principal input. |
a3fb94d to
302bc23
Compare
|
@ubaldot as author of https://github.com/ubaldot/vim9-conversion-aid may also want to have a glimpse |
97382f1 to
ed26bd5
Compare
|
Can you please remove the |
|
I beg your pardon; I that should have been the last amendment |
|
It's not big deal, just something to keep in mind for the next time :) It's cool that you are continuing my old work. |
|
Thanks a million @kennypete , taken almost wholesale, though keeping the Vim idioms section for plug-in developers |
27b5851 to
254c931
Compare
|
In a bit more detail: I merged the former try catch examples into the new one and kept the idioms and external commands sections as common use cases |
|
|
Thank you!
is there a natural vim9 alternative? The question is to which extent vim9script can replace vimscript (for example, the handling of shell commands pretty much stayed as is).
I added some simple examples.
These have more or less been merged into the first sections in the last commits. Have they become hard to find? Do you have a suggestion on how to reorganize and which data structures (currently enums, tuples, classes, ...) |
|
Nothing wrong with including Ex commands. Just mention it, so new users can distinguish them from vim9 constructs. |
I did consider that, though a comment up front could qualify it, noting that to provide visual aid to the reader, it's used so that the script may be run in full. Vim9 script options could be used instead, I guess, but probably would be clunky and not obvious to new-to-Vim9 users. You could create a new buffer and The better idea may be repurposing the vimscript intro. I'd not read it until now, but here are the applicable paragraphs: " Vim script (also called VimL) is the subset of Vim's ex-commands which |
I don't think |
|
Ex commands are just commands that are part of the legacy Ex editor. They are one liner and they return no values. They just execute an action. On the other had, functions are functions like in other programming languages. Ex commands can be used inside functions and, on the opposite route, you can call a function through an Ex command with |
Sorry, what I was meaning was to include aspects of that introduction to qualify the point about using There are other aspects of that introduction that would require changes too. So, here's a first crack at that - perhaps others can make it much better than this (don't use it verbatim - again, it's only a starter): |
|
Thank you @NameNoQuality, with the CSV issue being fixed the checks now pass and this could be considered for merging, as there have been no comments from the participants for two weeks |
|
@vendethiel, please let us know what tasks are still remaining for this to be included (and kindly excuse my impatience) |
|
Sorry, I didn't realize this was ready to merge :). Thank you for your work! |
[language/lang-code](example[python/fr]or[java/en])