autocmd FileType cpp nnoremap <buffer> C ct; autocmd FileType cpp nnoremap <buffer> D dt;
These two are quite useful, but sometimes there is no
; after the cursor and then
D doesn't do anything. And then I have to press 3 keys to delete
How to check if the last action (i.e.
Dt;) didn't change anything, and in that case, execute something else (
How how to check if there's a semicolon after the cursor and do