I can't save my vim file?

6,023

Solution 1

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

Solution 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.

Share:
6,023

Related videos on Youtube

Dady
Author by

Dady

Updated on September 18, 2022

Comments

  • Dady
    Dady over 1 year

    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