I want to write a command that specifies \"the word under the cursor\" in VIM. For instance, let\'s say I have the cursor on a word and I make it appear twice. For instance, i
yiwP
yiw: Yank inner word (the word under the cursor). This command also moves the cursor to the beginning of the word.
yiw
P: Paste before the cursor.
P
You can then map the e.g.: < ALT > - D to this command:
< ALT > - D
:nmap < ALT >-D yiwP