Dariusz on Software Quality

24/07/2009

Vim: mixed fileencodings

Filed under: en — Tags: — dariusz.cieslak @

Sometimes you have to edit files in different chatacters encodings using the same terminal (that is configured, let’s say, for UTF-8). It’s very easy by using the following Vim configuration:

set fileencodings=utf-8,iso-8859-2

This setting allows Vim to automatically detect encoding from list and select first that match. If your terminal is in different encoding file will be converted on-the-fly.

Happy Vim-ing!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress