How to save a file in Vim

Asked

Viewed 157 times

-4

I am logging into the UOL hosting by SSH to schedule a task with cron. I can type in the schedule, only I don’t know how to save, give a CTRL+S on the terminal I think it doesn’t work and I don’t know which command to use. The terminal screen looks something like this (it’s Vim?):

55 23 * * * curl www.meusite.com.br/cron...
~
~
~
~
~
~
-- INSERT --

And when I type I don’t know how to give a save.

  • 1

    just do this: [esc] :w! If you want to go out at the same time you record: [esc] :wq!

2 answers

1

Press ESC and type :w to save or :x to save and get out

1

@RESOLVED

I just typed in the cron task, then pressed Esc and typed :wq

Browser other questions tagged

You are not signed in. Login or sign up in order to post.