My question is similar to this one but for the
In insert mode, if I type
<Del> it removes the next character, including newlines. In normal mode, I have to type
x if the cursor is inner the line or
J if the cursor is just before the new line.
I could write a mapping that check the position of the cursor (something like
nmap <expr> <Del> getpos(".") == getpos("$") ? "J" : "x"), but I am surprised there is no standard way to do that.
Janywhere in the line...