[kwlug-disc] Vim with unicode ...
Khalid Baheyeldin
kb at 2bits.com
Sat Nov 30 19:33:57 EST 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20241130/81863174/attachment.htm>
More information about the kwlug-disc
mailing list