Open SolaWing opened 6 years ago
Currently, when do jk motion at multibyte line, the col is incorrect. like following img
the virtcol('.') is also slightly incorrect for returning the last column when char occupying multi column.
virtcol('.')
after searching in vim's function, I found getcurpos returns curswant, which is the perfect choice .
getcurpos
curswant
The "curswant" number is the preferred column when moving the cursor vertically.
Currently, when do jk motion at multibyte line, the col is incorrect. like following img
the
virtcol('.')
is also slightly incorrect for returning the last column when char occupying multi column.after searching in vim's function, I found
getcurpos
returnscurswant
, which is the perfect choice .