when i finish writing a short program i try to quit vi editor but it says i have 1 file to edit how do i fix that?

Asked by anthony tomlin

when i am writing a short program i try to exit vi editor using :wq which is what my book says to do but when i do that i get an error message saying that i have "1 more file to edit" .. i am new to unix/linux so go easy on me ok guys?

Question information

English Edit question
Ubuntu vim Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :

Press ESC
then :
then n

to go to the next file to edit then exit with:


Take care of spaces, to call vi with on a single file type name without spaces example:

vi my_file_new


vi my file new

in this way vi open 3 new files ( my then file then new )

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask anthony tomlin for more information if necessary.

To post a message you must log in.