Sujet : Re: vi: silence Invalid range with +n
De : anton.txt (at) *nospam* gmail.moc (Anton Shepelev)
Groupes : news.software.readersDate : 21. Sep 2024, 20:53:20
Autres entêtes
Organisation : To protect and to server
Message-ID : <vcn87g$1ua1q$2@paganini.bofh.team>
References : 1 2 3 4 5 6 7 8
User-Agent : tin/2.6.3-20231224 ("Banff") (FreeBSD/14.1-RELEASE (amd64))
Urs Janssen <
urs@buil.tin.org> wrote:
Joerg Mertens wrote:
# vi -c'$' file
So you can just ignore the %N.
>
... wich also won't work with followups, by the way.
Sorry for the noise.
>
vim -c":silent! +%N" %F
>
should work for vim/nvi
vim has it, but nvi does not, so perhaps the original vi did neither.
In nvi, which claims include a bug-for-bug reimplementation of vi,
`silent' is not documented and does not work.