<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>I type funny characters like ° into vim all the time, even over ssh.<br></div><div><br></div><div>This environment variable might be relevant:<br></div><div>LANG=en_CA.UTF-8<br></div><div><br></div><div>Vim needs to know that the character encoding is UTF-8.<br></div><div><br></div><div>On Sun, Dec 1, 2024, at 12:33 AM, Khalid Baheyeldin wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div dir="ltr"><div><div style="font-size:small;" class="qt-gmail_default">I am having a problem with special characters in Vim.<br></div><div style="font-size:small;" class="qt-gmail_default"><br></div><div style="font-size:small;" class="qt-gmail_default">The background: InfluxDB has "measurements" instead<br></div><div style="font-size:small;" class="qt-gmail_default">of tables in relational databases. A measurement is<br></div><div style="font-size:small;" class="qt-gmail_default">usually named after the unit, e.g. degrees, %, ...etc<br></div><div style="font-size:small;" class="qt-gmail_default"><br></div><div style="font-size:small;" class="qt-gmail_default">Degrees here is for celsius, and it is an actual degree<br></div><div style="font-size:small;" class="qt-gmail_default">unicode (hex c0b2).<br></div><div style="font-size:small;" class="qt-gmail_default"><br></div><div style="font-size:small;" class="qt-gmail_default">When I try to edit a script that has the this in it, vim<br></div><div style="font-size:small;" class="qt-gmail_default">loses its position and display in any characters after<br></div><div style="font-size:small;" class="qt-gmail_default">the special character.<br></div><div style="font-size:small;" class="qt-gmail_default"><br></div><div style="font-size:small;" class="qt-gmail_default">To illustrate this, copy this line from Pastebin, into<br></div><div style="font-size:small;" class="qt-gmail_default">a file:<br></div><div style="font-size:small;" class="qt-gmail_default"><a href="https://pastebin.com/8aaXZirA" target="_blank">https://pastebin.com/8aaXZirA</a><br></div></div><div style="font-size:small;" class="qt-gmail_default">Then search for the number 3, and substitute it<br></div><div style="font-size:small;" class="qt-gmail_default">with a string, e.g abc.<br></div><div style="font-size:small;" class="qt-gmail_default"><br></div></div><div dir="ltr"><div style="font-size:small;" class="qt-gmail_default">Then press Ctrl L, and you will see that vim is no <br></div><div style="font-size:small;" class="qt-gmail_default">at the correct character visually.<br></div></div><div dir="ltr"><div style="font-size:small;" class="qt-gmail_default"><br></div><div style="font-size:small;" class="qt-gmail_default">If I edit the same file in Mousepad, everything is<br></div><div style="font-size:small;" class="qt-gmail_default">as it should be. But that is a GUI application not<br></div><div style="font-size:small;" class="qt-gmail_default">a CLI one on a remote terminal.<br></div><div style="font-size:small;" class="qt-gmail_default"><br></div><div style="font-size:small;" class="qt-gmail_default">Anyone else facing this issue?<br></div><div style="font-size:small;" class="qt-gmail_default">What is your $TERM variable set to?<br></div><div style="font-size:small;" class="qt-gmail_default">Any special configuration for vim or the terminal?<br></div><div><br></div><div><span class="qt-gmail_signature_prefix">--</span><br></div><div dir="ltr" class="qt-gmail_signature">Khalid M. Baheyeldin<br></div></div></div><div>_______________________________________________<br></div><div>kwlug-disc mailing list<br></div><div>To unsubscribe, send an email to <a href="mailto:kwlug-disc-leave@kwlug.org">kwlug-disc-leave@kwlug.org</a><br></div><div>with the subject "unsubscribe", or email<br></div><div><a href="mailto:kwlug-disc-owner@kwlug.org">kwlug-disc-owner@kwlug.org</a> to contact a human being.<br></div><div><br></div></blockquote><div><br></div></body></html>