Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Is charcol('.') what you're looking for? It works similarly to col('.') but returns the index of the Unicode character, not the byte position. Commented Apr 16, 2021 at 3:46
  • 1
    In part, but not entirely. Fortunately, the docs include byteidx() and charidx() (that I of course managed to miss when reading col() docs), which should be enough to let be convert between systems and access strings properly. charcol should fix the col issue, and byteidx and charidx should be able to work around compatibility with other functions. Commented Apr 16, 2021 at 8:36
  • 1
    Feel free to post a self answer with what solved the issue in full for you! Thanks! Commented Apr 16, 2021 at 11:47