| Deutsch English Français Italiano |
|
<vcn1pr$1mh6v$1@jmertens.eternal-september.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!jmertens.eternal-september.org!.POSTED!not-for-mail
From: Joerg Mertens <joerg-mertens@t-online.de>
Newsgroups: news.software.readers
Subject: Re: tin: article stubs one line short
Date: Sat, 21 Sep 2024 20:03:38 +0200
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <vcn1pr$1mh6v$1@jmertens.eternal-september.org>
References: <vchp81$1bo2h$1@paganini.bofh.team> <1gzgk2lgv08eo$.dlg@v.nguard.lh> <vck7ih$1kifu$1@paganini.bofh.team> <vcm5bq$oku$1@nntp.de> <vcm7vo$1sm6e$1@paganini.bofh.team> <vcmk26$1kfii$1@jmertens.eternal-september.org> <vcmkij$1khns$1@jmertens.eternal-september.org> <vcmksd$1tad9$2@paganini.bofh.team>
Injection-Date: Sat, 21 Sep 2024 20:03:42 +0200 (CEST)
Injection-Info: jmertens.eternal-september.org; posting-host="780f853119d2bdef0bebdfac3be25873";
logging-data="1787127"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/stZBsAKikixXmFhhLDoUB7C4VK0bZ7iI="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
Cancel-Lock: sha1:H1L6wugo5cNGpwXYnDfWtNNh8Uw=
Bytes: 2307
Anton Shepelev <anton.txt@gmail.moc> wrote:
> Joerg Mertens <joerg-mertens@t-online.de> wrote:
>>Joerg Mertens <joerg-mertens@t-online.de> wrote:
>>>
>>> You can also tell nvi to jump to the last line with
>>>
>>> # vi +'$' file
>>>
>>> or
>>>
>>> # vi -c'$' file
>>>
>>> So you can just ignore the %N.
>>
>>... wich also won't work with followups, by the way.
>> Sorry for the noise.
>
> I love this noise and am glad to meet a vi user online. Have you
> noticed that its -c option is documented as if accepting the command
> after a space: -c <cmd> ? This form does not work for me, and I
> have to use it without the inervening space: -c<cmd> . Is it an
> error in the man page, or I am missing someting?
It works here with both the system nvi (OpenBSD) and the nvi from ports.
The former is version 1.79 and the ports nvi is 2.2.1.
For example:
# vi -c '/^$/' file
starts on the first blank line of the file,
# vi -c '/^$/++' file
starts two lines after the first blank line of the file and so on.
Seems like your FreeBSD has its own version.