0

I ssh to my ubuntu server from mac, and type vi command. I paste some text, and then every shortcut is invalid. esc becomes ^[, command + c not work, and I have to terminate my session. What happened, and what should i do to reenter vi command mode

the problem looks like this:

some text pasted[201~
^[^[^[^[^[^[
^C
^?
~
~
~
-- INSERT (paste)--  // sometimes just '-- INSERT --'

I tried command + c, command + q, and failed

2
  • Did you try :set nopaste? Commented Nov 25, 2022 at 5:40
  • 1
    @dlmeetei First the OP wants to exit Insert mode. Commented Nov 25, 2022 at 9:24

0

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.