[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vim not seeing many Unicode chars



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.


Reply to: