In vim, in normal mode, if the cursor is in a word and not in the last letter, de removes the suffix of the word from the cursor position. If the cursor is on the last letter, x also does this, and de will jump to the end of the next word.
Which command would you use, will it work in both cases, the last letter or not?
The goal is to include the command in the macro.
source share