The simple encoding answers... Put
:set enc=utf-8 in your .vimrc. Vim represents everything internally as UTF-8 then, so it can basically represent anything you'll come across, probably. Also set fencs (plural) in your .vimrc to something sensible for what you want. To force reading a file with a certain encoding (perhaps different to what will be detected with your fencs option), do :e ++enc=whatever filename.txt The ++enc is a little misleading: it reads the file and sets fenc accordingly; it doesn't change enc. You can leave off the filename.txt bit to reload the current file, 'reinterpreting' it with a different encoding. To save a file with a certain encoding, just change fenc before writing it; it sets the encoding the file will be written with. If you just want to save a copy with a different encoding, do :w ++enc=whatever converted.txt The next :w will still use the old encoding as determined by fenc. Hope that helps. It pretty much covers everything you should need on a day-to-day basis, I think. Ben. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
