0

enter image description here

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

Smita Ahinave
  • 1,901
  • 7
  • 23
  • 42
azardin
  • 41
  • 2
  • 4

1 Answers1

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