VIM - How to delete a word in the INSERT mode?
I was actually looking for the answer for vscodevim
. If you're like me the answer is simple: there's a build-in shortcut in vscode so we can just add the following to settings.json
:
"vim.insertModeKeyBindings": [
{
// Delete one word forward in Insert Mode
"before": ["<C-e>"],
"commands": ["deleteWordRight"]
}
]
There's no built-in command for that but you can create your own easily:
inoremap <key> <C-o>de