Is there any key mapping that outputs the current row number of the line being edited? Or, even better yet, can we do formulas based on the output of the key mapping?
I
You can get the visual width of the current cursor position with virtcol('.')
; insert that into the buffer through the expression register, e.g. in insert mode with
Note that the width is different from the number of characters when the line contains double-width characters,
or unprintable characters.