AIX's vi ha i propri comandi; mi ci è voluto un po 'per trovare questa informazione perché le risposte in questa domanda non ce l'avevano già, quindi aggiungerò questa risposta.
Né :p
, :N
, nè :prev
lavoro per andare al file precedente, è necessario utilizzare una delle varianti del comando :n ---
.
Il :n
per lo spostamento al file successivo è lo stesso
Usa :n file_name
per passare a un certo file (può aprire nuovi file in questo modo anche) (per andare al file precedente, basta farlo con il precedente il nome del file
Usa :n list of file names
per definire un nuovo elenco di file da modificare (in questo caso, i file list
, of
, file
e names
sarebbe stata aperta in serie utilizzando :n
dopo l'esecuzione :n list of file names
Altri risultati utili dalle pagine 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.
fonte
2017-11-10 16:34:31
Grazie tialaramex :) – Dinesh
sia qualche editor vi,: p non funziona. Usa: prev invece – kingsmasher1