Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235304

Re: vim not seeing many Unicode chars

From Steve Dondley <s@dondley.com>
Newsgroups linux.debian.user
Subject Re: vim not seeing many Unicode chars
Date 2021-05-18 18:40 +0200
Message-ID <CgaVb-5Gg-9@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>
Organization linux.* mail to news gateway

Show all headers | View raw


[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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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