Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2019 10:49:15 +0200
From:      "Rocky Hotas" <rockyhotas@post.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Cc:        guru@unixarea.de
Subject:   Re: vi(1) and ISO 8859-1
Message-ID:  <trinity-79727a05-8f1d-44c9-8a52-c312829a1be8-1554540555440@3c-app-mailcom-lxa14>
In-Reply-To: <20190405074332.GA22920@sh4-5.1blu.de>
References:  <trinity-f25766ad-e745-4e70-98d1-52c0ba83fe56-1554398089214@3c-app-mailcom-lxa05> <20190404190642.GA4609@sh4-5.1blu.de> <trinity-377d302a-8822-473a-b563-ce9cc7238ad5-1554415164891@3c-app-mailcom-lxa08> <20190405051835.GA18093@sh4-5.1blu.de> <20190405074332.GA22920@sh4-5.1blu.de>

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

> Sent: Friday, April 05, 2019 at 9:43 AM
> From: "Matthias Apitz" <guru@unixarea.de>
> To: freebsd-questions@freebsd.org
> Subject: Re: vi(1) and ISO 8859-1

[...]

> > This is with vim 8.1.555 on 
> > 
> > $ uname -a
> > FreeBSD c720-r342378 13.0-CURRENT FreeBSD 13.0-CURRENT GENERIC  amd64

Thanks for your test and for the version check.

> I now realized that you were talking about vi(1) while I was talking
> about vim (from the ports).

Exactly: they are not the same.

> If you compare it with vim on Linux, you
> should better compare this port because on Linux vi is vim:

Yes, on Linux vi(1) is a symlink to vim. It's good that at least the vim on
Linux and the one in FreeBSD ports behave similarly.

Even without a comparison between them, my doubt is another one. I wonder if
it is normal and expected that FreeBSD's vi(1) (which actually is nvi/nex)
does not automatically switch its encoding according to the current file,
despite the `fileencoding, fe [auto detect]' in the manpage.

Again, `auto detect' lets me wonder about this.

I am using vi(1) Version 2.1.3 (2015-04-08) on FreeBSD 12-RELEASE amd64.

Bye!

Rocky


> 	matthias 
> -- 
> Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub
> 70 years of NATO - 70 years of wars (Jugoslavia, Afghanistan, Syria, ...) and 70 years
> of war preparation against Russia.  -- PEACE instead of NATO !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?trinity-79727a05-8f1d-44c9-8a52-c312829a1be8-1554540555440>