Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 13:06:48 +0100 (CET)
From:      Konrad Heuer <kheuer2@gwdg.de>
To:        Zhang Weiwu <weiwuzhang@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: newbie: vi - go to previous file
Message-ID:  <20031111130544.F28128@gwdu60.gwdg.de>
In-Reply-To: <LAW11-F17v4ucOK05sd000340e3@hotmail.com>
References:  <LAW11-F17v4ucOK05sd000340e3@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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@gwdg.de)  ____            ___  _______
GWDG                           / __/______ ___ / _ )/ __/ _ \
Am Fassberg                   / _// __/ -_) -_) _  |\ \/ // /
37077 Goettingen             /_/ /_/  \__/\__/____/___/____/
Germany



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031111130544.F28128>