Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

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

share|improve this answer
add comment

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.

share|improve this answer
    
Thank you it works –  Dady Mar 28 '13 at 9:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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