Re: Mac Terminal.app, utf-8 and vim
- Hi Benji,
Ah yes, I almost missed that request. Of course, here you are:
Q: How can I use national characters when running vim in a Terminal
window? I get funny characters or extra white space!
A: Go to Terminal.app -> Menu Terminal -> Window Settings. Select
Emulation from the Popup menu, un-check the item Escape non-ASCII
characters (terminal sends ctrl-V for quoting). Then select Display
from the Popup menu, set Character Set Encoding to Unicode (UTF-8),
if desired. Click on "Use settings as Default."
At last, vim defaults to "set encoding=latin1". To use Unicode
instead, add the following line to your .bashrc, then open a new shell:
Am 03.12.2005 um 17:38 schrieb Benji Fisher:
> On Fri, Dec 02, 2005 at 09:20:50PM +0100, Peter Vohmann wrote:
>> Jussi Hagman wrote:
>>>> When I type "ä" into vim on the mac, I get "Ã¤" instead. You've
>>>> heard it before, right?
>>> Actually I had not but I could reproduce after a little tinkering.
>> I found it on the mail archive of this very list. ;-)
>>> You should setup the Terminal.app so that it would not escape non-
>>> ascii characters. (uncheck terminal -> window settings -> emulation
>>> -> escape non ascii chars and save that as defaults)
>> That's it. THANK YOU!
> Now that you have the answer, if you write it up as a Q&A, I will
> add it to the list at http://macvim.org/OSX/index.php#FAQ .
> --Benji Fisher