0

I'm new in VIM editor, and i want to know how to save a file after editing, i entered :x after finishing my modification, but nothing is happening !! so where should i put this command :x to be executed !

Thank you

3

The command for saving a Vim file is :w and Enter in the Command mode. You can get the command mode by pressing the Esc key. If you want to save and exit the file it is :wq

2

Press Esc before in order to enter into a normal mode, then press : to enter into a command mode, then enter your command (x in this case) and press Enter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.