Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm using vim editor and my escape button stopped working. I've some unsaved data and I'm in insert mode. How can I still save my data?

Tags:

vim

Getting my content saved.

I want my content saved or written without using the escape button. I'm worried as my data will not be saved.

like image 539
Ranjit Mane Avatar asked Oct 15 '25 04:10

Ranjit Mane


2 Answers

Try Ctrl+[, which is equivalent to Escape in most terminals.

like image 68
hobbs Avatar answered Oct 17 '25 17:10

hobbs


<C-c> and <C-[> can both be used instead of <Esc>.

like image 35
romainl Avatar answered Oct 17 '25 16:10

romainl