All Questions
2 questions
1
vote
1
answer
66
views
How to prevent cursor shift when using <C-O>{delete cmd} at the end of a line?
<C-w> deletes a (small-)word in insert mode, but I often want to delete the Word (to last whitespace) I've most recently typed. I tried
inoremap <C-_> <C-o>dB
which kind-of works -- ...
2
votes
6
answers
1k
views
How to delete a pair of parenthesis with backspace
I'm using vim to code C++ and I want to handle the parenthesis more easily.
I knew that there was a plugin named Surround, which can help us but it is not what I expected.
I set some shortcuts as ...