On Tue, May 18, 2021 at 11:38 Steve Dondley <s...@dondley.com> wrote:
> On 2021-05-18 12:23 PM, Tom Browder wrote: > > On Tue, May 18, 2021 at 11:08 Steve Dondley <s...@dondley.com> wrote: > >> On 2021-05-18 10:25 AM, Tom Browder wrote: >> >> I'm running Debian Buster. Inside a terminal window I can use Emacs and >> can see and enter Unicode chars. >> >> But in the same terminal, when I run vim, I have trouble editing or >> seeing most Unicode chars above ASCII. >> >> >> >> >> >> Type ":set fileencoding?" from inside vim. >> >> What do you see? >> > > I see at the bottom of the window (without the square brackets): > > [ fileencoding= ] > > -Tom > > OK, that's one issue. In your vimrc file, add "set fileencoding=utf8". > Restart vim. Your files will be saved with utf8. > > Now check "set encoding?" > > What does that say? > > If it says nothing, add "set encoding=utf8" to the vimrc file. Now vim > should show the files with utf8 encoding. > I did all you suggested, and eventually boiled it down to one and only one line in my $HOME/.vimrc file: set encoding=utf8 and all works when I vim the file with utf8 chars! I can see them, delete them, and enter them. Thanks so much, Steve. As you said, that's the first issue. Now I'll start cleaning up the locale mess and use the rest of the suggestions. Best regards, -Tom