How should i exit the vi editor. I just opened vi editor and typed shell program then im unable to exit the vi editor due to no file name so i used :saveas command and saved as mfs. Again it showing same error
            Asked
            
        
        
            Active
            
        
            Viewed 3,588 times
        
    0
            
            
        - 
                    did you try ESC + :q! ? – Akash Mahapatra Nov 21 '16 at 06:28
- 
                    just type escape then :q! – Jim B. Nov 21 '16 at 06:29
- 
                    Try saving the file in your home directory: `:sav ~/mfs` – glenn jackman Nov 22 '16 at 03:59
1 Answers
1
            
            
        To set a file name use :w filename
Then you can use :wq! or :x to save and quit vi.
 
    
    
        crea1
        
- 11,077
- 3
- 36
- 46

 
    