If I'm in command mode, how do I backspace? Hitting the delete key on my Macbook just moves the cursor to the left one space. The fastest way I know to do this is h, x, but is there a better way, maybe with one key?
If I'm in command mode, how do I backspace? Hitting the delete key on my Macbook just moves the cursor to the left one space. The fastest way I know to do this is h, x, but is there a better way, maybe with one key?
Map it to g space or your preferred shortcut in your vimrc. This works in command mode
nnoremap <silent> g<Space> i<Space><Esc>
if you want to perform a move action after space, append the move action after Esc. e.g. below moves mouse to the left after space
nnoremap <silent> g<Space> i<Space><Esc>j