Monday, June 1, 2020

Re: VimScript for Python developers

Hi Bram,

On Mon, Jun 1, 2020 at 5:09 AM Bram Moolenaar <Bram@moolenaar.net> wrote:

Yegappan wrote:

> I have put together the following gist to help Python developers
> with VimScript:
>
> https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0

Very useful!

> Let me know if you have any comments/suggestions.

Some things are identical.  Instead of the reader staring at the text to
spot any differences, how about just saying "the same".  E.g. at the
start of "Comparison Operators".

I have now used a table to compare the various operators.
 

For dictionaries it would be useful to mention the #{} form:

let d = {'red' : 10, 'blue' : 20}  or  #{red : 10, blue : 20}
let x = {}

I have updated the gist with this.
 

Some day it would be nice to do the same for Vim9 script.


Once the Vim9 script has all the features as Vim8, I will create
another gist.

Regards,
Yegappan

--
--
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/CAAW7x7%3D-Ly9QkXhUxoMRZNYmPWV4-06uZJDXLLrNV95ebFjWDQ%40mail.gmail.com.

No comments:

Post a Comment