The command ' wq ' in vi and vim
I am very familiar with the editor 'vi' on UNIX systems.
You can create a file by writing either 'vi' or 'vim' At the end of the file, the command ' wq ' save the file exit the editor. I just installed open SuSE 10.3 on another computer. It is working fine. At the command line I created a file by writing 'vi rubbish1'. I wrote what I wanted to do in it. Afterwards, I wanted to exit by writing ' wq '. Of course, first you have to press the 'Esc' button before writing 'wq'. It does not respond. The file is there without closing. I tried even ' vim rubbish2 '. It created the file 'rubbish2'. I wrote what I wanted. At the end 'wq ' command does not respond. What is the problem? I badly need your help. |
That is with a ':', of course? Bizarre. You could try 'w' and 'q' separately or 'ZZ' or perhaps other ways. I'd look at the system-wide and personal config files, too - only thing I can think of is a weird mapping clobbering things.
-- :x was the other one I was trying to think of. Incidentally, you don't say which specific implementation you're using and I don't know what Suse ships. Might be able to get more help from someone with that information. |
Thanks digiot
Now I solve the problem. I am an idiot. When I press to get this sign ' : ' , does not come. I have to do a few things to adjust on the shell. Now it works. |
Oh, I see. Glad you got it working. :)
|
All times are GMT -5. The time now is 07:17 AM. |