vi của AIX có các lệnh riêng; tôi mất một lúc để tìm thông tin này bởi vì các câu trả lời trong câu hỏi này chưa có câu trả lời, vì vậy tôi sẽ thêm câu trả lời này.
Không :p
, :N
và :prev
làm việc để chuyển đến tệp trước, bạn cần sử dụng một trong các biến thể của lệnh :n ---
.
Các :n
cho việc di chuyển đến tập tin kế tiếp là như nhau
Sử dụng :n file_name
để di chuyển vào một tập tin nào đó (có thể mở tập tin mới theo cách này quá) (Để truy cập các tập tin trước đó, chỉ cần làm điều này với trước tên file của
sử dụng :n list of file names
để xác định một danh sách các file mới để chỉnh sửa (trong trường hợp này, các tập tin list
, of
, file
, và names
sẽ được mở ra ở loạt sử dụng :n
sau khi chạy :n list of file names
kết quả hữu ích khác từ các trang man
: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.
Nguồn
2017-11-10 16:34:31
Cảm ơn tialaramex :) – Dinesh
là một số trình soạn thảo vi,: p không hoạt động. Sử dụng: prev thay vì – kingsmasher1