On So, 31 Mai 2020, Yegappan Lakshmanan wrote:

> Hi all,
> 
> I have put together the following gist to help Python developers
> with VimScript:
> 
> https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0
> 
> Let me know if you have any comments/suggestions.

Very nice. Are you keeping this up to date there? Perhaps a link to this 
reference should be included in the help

I notice this:

> Finding string length

The mentioned functions (len(), strlen()) do not handle multibyte 
characters, but return the byte-length, perhaps explicitly add 
strwidth()

> Getting a substring

Again, using str[index] uses byte index, same for strpart, perhaps 
mention strcharpart()

> Checking whether a string starts with or ends with a substring

> if str =~# "^ing"

Please use single quotes, so that if one adds other regular expression 
atoms such as \+ or \d one do not have to double the backslashes.


Best,
Christian
-- 
Ein Kompromiss, das ist die Kunst, einen Kuchen so zu teilen, daß
jeder meint, er habe das größte Stück bekommen.
                -- Ludwig Erhard

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200601163153.GG16708%40256bit.org.

Reply via email to