alt+backspace to delete words in vim
customization, vim
Solution
On macOS with iTerm2, I have the option keys mapped to +Esc (like many people), and I found that pressing Option+Backspace actually was interpreted by vim as an Escape press followed by a Backspace press, so the following binding worked perfectly for me; I recommend trying it even if your configuration is different than mine, just in case it works for you!
:imap <Esc><BS> <C-w>
Problem
How can I remap `alt+backspace` to delete words like native *NIX text manipulation? I checked out this thread: Using alt+backspace key in vim command line to delete by words And the examples like: `cmap <a-bs> <c-w>` and `:imap <A-BS> <C-W>` don't do anything. And the accepted answer was actually to not even remap it, but to use `ctrl+w`. Since VIM's `alt+backspace` doesn't do anything I'd rather remap it to something I'm used to. I'm using terminal based VIM (specifically in iTerm)