You are not logged in.

#1 2021-02-16 23:40:17

asportking
Member
Registered: 2014-04-17
Posts: 41

Vim conceal not working properly (seems like UTF-8 issue)

Posting this here rather than vim-related forums since I'm quite sure this is some weird UTF-8 Arch issue, as I have identical vim setups running on several other computers without an issue.

Using conceal in vim results in the following:
9owFj0k.png

My .vimrc file consists of

set conceallevel=2
syntax on
set uncoding=utf-8

I have tried this on urxvt using Terminus and DejaVu Sans, as well as xterm with whatever their default font is. The output is always garbled. Any suggestions? This problem has persisted since I set up this VM (about six months ago), and has persisted through the various updates I've ran since then. I've set my locale to en_US.UTF-8. Never really had any font-related issues, so I'm not really sure where to begin with troubleshooting.

Last edited by asportking (2021-02-16 23:41:39)

Offline

#2 2021-02-16 23:45:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Vim conceal not working properly (seems like UTF-8 issue)

What's the output of `locale` and `locale -a`?

Offline

#3 2021-02-17 00:01:18

asportking
Member
Registered: 2014-04-17
Posts: 41

Re: Vim conceal not working properly (seems like UTF-8 issue)

[] locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
[] locale-a
C
POSIX
en_US.utf8

Offline

#4 2021-02-17 00:23:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Vim conceal not working properly (seems like UTF-8 issue)

So that very well may be your problem. This:

I've set my locale to en_US.UTF-8.

Is wrong, you have it set to C, which is a non-UTF8 locale.

Offline

#5 2021-02-17 00:26:47

asportking
Member
Registered: 2014-04-17
Posts: 41

Re: Vim conceal not working properly (seems like UTF-8 issue)

Hm, so my statement was based off of the fact that I've ran locale-gen, which outputs

Generating locales...
  en_US.UTF-8... done
Generation complete.

Shouldn't that be enough?

EDIT: Looks like I forgot to make /etc/locale.conf on this installation, thanks.

Last edited by asportking (2021-02-17 00:30:21)

Offline

#6 2021-02-17 00:32:03

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Vim conceal not working properly (seems like UTF-8 issue)

You have made it possible to use the locale, but you have not chosen it.

https://wiki.archlinux.org/index.php/Locale

It was also mentioned in the installation guide: https://wiki.archlinux.org/index.php/In … calization

Edit: You found it as well.

Last edited by progandy (2021-02-17 00:32:33)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB