I
I
im_dimas2016-01-23 20:20:45
CentOS
im_dimas, 2016-01-23 20:20:45

How to save a file in vim?

I'm editing a file via sudo vim /etc/sudoers, I don't know how to exit the editor and save the file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abcyu, 2016-01-23
@dimas199862

Hahahahaha
: wq
if it doesn't work, then first ESC
and then :wq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question