AIX vi имеет свои собственные команды; Мне потребовалось некоторое время, чтобы найти эту информацию, потому что в ответах на этот вопрос ее еще не было, поэтому я добавлю этот ответ.
Ни :p
, :N
, ни :prev
не работают для перехода к предыдущему файлу, вам нужно использовать один из вариантов команды :n ---
.
:n
для перехода к следующему файлу такой же
Используйте :n file_name
для перехода к определенному файлу (также можно открывать новые файлы таким же образом) (Чтобы перейти к предыдущему файлу, просто сделайте это с именем предыдущего файла
Используйте :n list of file names
, чтобы определить новый список файлов для редактирования (В этом случае файлы list
, of
, file
и names
будут открываться последовательно с использованием :n
после запуска :n list of file names
Другие полезные результаты из справочных страниц
:e File
Edits the specified file. If you are using this subcommand
from the ex editor, you do not need to type the : (colon).
:e!
Re-edits the current file and discards all changes.
:e + File
Edits the specified file starting at the end.
:e + Number File
Edits the specified file starting at the specified line number.
:e #
Edits the alternate file. The alternate file is usually the
previous file name before accessing another file with a
:e command. However, if changes are pending on the current
file when a new file is called, the new file becomes the
alternate file. This subcommand is the same as the Ctrl-A
subcommand.
Ctrl-G
Shows the current file name, current line number, number of
lines in the file, and percentage of the way through the
file where the cursor is located.