Dariusz on Software

Methods and Tools

About This Site

Software development stuff

Archive

Vim: mixed fileencodings
Fri, 24 Jul 2009 07:28:06 +0000

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!

Tags: vim.

Tags

Created by Chronicle v3.5