Tuesday, October 2, 2012

RE: OT: The so called "steep learning curve" of vim...

Marc Weber wrote:
> Try Win + R -> "regedit" click on any folder -> File export
> -> save as .reg file. Then you have a binary format which you
> can open in Vim but which is unreadable for humans. Notepad
> decodes it.

On Windows (or most systems for that matter), your vimrc should
probably start with the following two lines:

set nocompatible
set encoding=utf-8

And, there should be nothing which sets fenc or fencs
(the 'fileencoding' and 'fileencodings' options).

You might have something to set fencs, but the defaults have
been sufficient for my modest needs.

With the above, Vim can correctly read a .reg file. After the
file is open, the following command shows that the .reg file
has file encoding utf-16le:

:set fenc?

John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: