In case I have the following line
// Component: <Component name here> |
where |
is the cursor marker. How can I count, using vimscript, the total number of white spaces before the cursor until the first non space character (>
in this case) ?
The aim is to delete all preceding whitespace before cursor, until non first space character (excluding it).
diw
without calculating anything, here.C-Backspace
to delete previous word or white spaces. I solved anyway.