Monday, June 1, 2020

Re: VimScript for Python developers

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".

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

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

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

--
"The amigos also appear to be guilty of not citing the work of others who had
gone before them. Even worse, they have a chapter about modeling time and
space without making a single reference to Star Trek!"
(Scott Ambler, reviewing the UML User Guide)

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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/202006011209.051C90JK890555%40masaka.moolenaar.net.

No comments:

Post a Comment