[kwlug-disc] Vim with unicode ...

Doug Moen doug at moens.org
Sat Nov 30 19:47:59 EST 2024


I type funny characters like ° into vim all the time, even over ssh.

This environment variable might be relevant:
LANG=en_CA.UTF-8

Vim needs to know that the character encoding is UTF-8.

On Sun, Dec 1, 2024, at 12:33 AM, Khalid Baheyeldin wrote:
> I am having a problem with special characters in Vim.
> 
> The background: InfluxDB has "measurements" instead
> of tables in relational databases. A measurement is
> usually named after the unit, e.g. degrees, %, ...etc
> 
> Degrees here is for celsius, and it is an actual degree
> unicode (hex c0b2).
> 
> When I try to edit a script that has the this in it, vim
> loses its position and display in any characters after
> the special character.
> 
> To illustrate this, copy this line from Pastebin, into
> a file:
> https://pastebin.com/8aaXZirA
> Then search for the number 3, and substitute it
> with a string, e.g abc.
> 
> Then press Ctrl L, and you will see that vim is no 
> at the correct character visually.
> 
> If I edit the same file in Mousepad, everything is
> as it should be. But that is a GUI application not
> a CLI one on a remote terminal.
> 
> Anyone else facing this issue?
> What is your $TERM variable set to?
> Any special configuration for vim or the terminal?
> 
> --
> Khalid M. Baheyeldin
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20241201/4089cf65/attachment.htm>


More information about the kwlug-disc mailing list