newbie: vi - go to previous file

Konrad Heuer kheuer2 at gwdg.de
Tue Nov 11 04:06:52 PST 2003


On Tue, 11 Nov 2003, Zhang Weiwu wrote:

> Hello. I am using the BSD's vi not vim.
>
> I learned from :exusage that :N is to swich to the next file in argument
> list while :P swich to the previous file. :N woks fine, while :P does
> nothing.
>
> Say, I run ">vi file1 file2", which opens file1, :N begin to edit file2,
> then I press :P, I thought I should go to file1, but I'm still editing
> file2.

Try :prev - :p seems to be an abbreviation for a different command.

Regards

Konrad Heuer (kheuer2 at gwdg.de)  ____            ___  _______
GWDG                           / __/______ ___ / _ )/ __/ _ \
Am Fassberg                   / _// __/ -_) -_) _  |\ \/ // /
37077 Goettingen             /_/ /_/  \__/\__/____/___/____/
Germany



More information about the freebsd-questions mailing list