I'm using an intellij editor (Rider/Clion) with the vim plugin on mac osx and am attempting to intelligently select words in my editor, which I accomplish via an 'extend selection'/'shrink selection' keymap within Rider.
I'm happy with the above, but would like to delete the selection within one keystroke in normal mode in vim. I understand that the selection is not known to vim, so I'd like to remap my delete key to perform an
i followed by backspace for eg.
:nnoremap <Del> i<backspace>
And a few others with no joy
I've checked the mapping within vim via
:nmap and I can see the result but when testing, the delete key remains in normal mode hence simply moves the cursor back one character.
Any help to my above conundrum (or otherwise better advice than what I'm trying to perform) would be highly appreciated!