Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #235301 > unrolled thread
| Started by | Tom Browder <tom.browder@gmail.com> |
|---|---|
| First post | 2021-05-18 18:30 +0200 |
| Last post | 2021-05-18 22:00 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Tom Browder <tom.browder@gmail.com> |
|---|---|
| Date | 2021-05-18 18:30 +0200 |
| Subject | Re: vim not seeing many Unicode chars |
| Message-ID | <CgaLv-5Da-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [next] | [standalone]
| From | Steve Dondley <s@dondley.com> |
|---|---|
| Date | 2021-05-18 18:40 +0200 |
| Message-ID | <CgaVb-5Gg-9@gated-at.bofh.it> |
| In reply to | #235301 |
[Multipart message — attachments visible in raw view] — view raw
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.
[toc] | [prev] | [next] | [standalone]
| From | Tom Browder <tom.browder@gmail.com> |
|---|---|
| Date | 2021-05-18 22:00 +0200 |
| Subject | Re: vim not seeing many Unicode chars [SOLVED] |
| Message-ID | <Cge2J-7s1-1@gated-at.bofh.it> |
| In reply to | #235304 |
[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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web