vim on a shared Bluehost server. When I try to type
—, Vim inserts
�~@~R. And when I try to type
–, Vim inserts
The problem is not specific to any particular file. It seems to happen in every file.
I tried logging out and using
vim outside the server, and this time I could type medium and long dashes with no problem. So the problem is with Bluehost.
Does anyone know a solution? I suspect it involves adding something to the
It only happens in Vim, not the command line.
I'm not using a graphical vim.
If I type :lang I get 'Current language: "C"'.
If I call vim with LC_ALL=C vim foo then the problem still happens.
Edit: I've found that if I enter
set encoding=utf-8 then the problem is solved, at least temporarily.