How do I switch between files in vi?

Ngọc Trâm

New member
How do I switch between files in vi?
Answer
1 Invoking vi on Multiple Files one. When you first invoke vi, you can name more than one file to edit, and then use
ex commands to travel between the files. invokes file1 first. After you have finished editing the first file, the ex command :w writes (saves) file1 and :n calls in the next file (file2).
 

Tìm kiếm

Back
Top