According to :help strpart()
, the parameters start
and len
are bytes, not characters, so that
returns a string of 2 characters, starting with the letter Beth. What I'd like to have is a function, that I can pass a hebrew (or any other multibyte character string) and not have byte semantics but character semantics, so that with the parameters 2
and 4
I am returned a four character string starting with the letter Gimmel.
Please excuse that I am posting a picture, but when I tried to copy paste my example, the left to right/right to left handling of the stackexchange-editor got into my way.
:help string-functions
and:help list-functions
.