Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #235329
| From | Tom Browder <tom.browder@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: vim not seeing many Unicode chars [SOLVED] |
| Date | 2021-05-18 22:00 +0200 |
| Message-ID | <Cge2J-7s1-1@gated-at.bofh.it> (permalink) |
| References | <Cg8To-4wG-5@gated-at.bofh.it> <Cgas9-5x1-1@gated-at.bofh.it> <CgaLv-5Da-1@gated-at.bofh.it> <CgaVb-5Gg-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
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
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: vim not seeing many Unicode chars Tom Browder <tom.browder@gmail.com> - 2021-05-18 18:30 +0200
Re: vim not seeing many Unicode chars Steve Dondley <s@dondley.com> - 2021-05-18 18:40 +0200
Re: vim not seeing many Unicode chars [SOLVED] Tom Browder <tom.browder@gmail.com> - 2021-05-18 22:00 +0200
csiph-web