Home » Questions » Computers [ Ask a new question ]

How to use UTF-8 in vim on Mac OS X?

How to use UTF-8 in vim on Mac OS X?

I want to edit UTF-8 documents with vim (7.2 installed via MacPorts, big feautre set, iconv support enabled, multi-byte support enabled) on Mac OS X 10.4 within terminal.app.

Asked by: Guest | Views: 505
Total answers/comments: 1
Guest [Entry]

"Check out this:

(Thanks to Peter Vohmann for this Q&A.) In Terminal.app go the the Terminal (main) menu and
choose Window Settings. Select Emulation from the popup menu, un-check the item
""Escape non-ASCII characters"". Then select Display from the popup menu,
set Character Set Encoding to Unicode (UTF-8), if desired.
Click on ""Use settings as Default.""

(from MacVim Site)

As far as I remember, 10.4 Terminal.app has some troubles, when dealing with UTF-8; checking setting above would, probably, help. As an alternative solution, consider using MacVim or iTerm as terminal application.

Update: as Ben Stiglitz mentioned in comments, 10.4 Terminal is OK, but 10.4 bundled shells are not."