3

in vim insert mode:

module:function|
               ^
               cursor at here

I wanna press combined key (e.g. C-z) to delete the function.

module:|
       ^
       cursor at here

The key point is that: can not exit the insert mode

how to do that?

0

1 Answer 1

5

directly input: <C-o>db

<C-o>will execute a normal command,then back to insert.

You may add a map to execute directly:

ino <C-z> <C-o>db

By the way, there is a built-in key:<C-w>, which backwards delete word.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.