On Tue, Aug 14, 2007 at 08:38:38AM +0200, Penguin Lover Michal 'vorner' Vaner
squawked:
Hello
On Mon, Aug 13, 2007 at 10:42:17PM +0100, Mick wrote:
Hmm, I just checked a utf-8 file after I edited it and it says:
:set encoding
encoding=latin1
I would guess your UTF-8 file has no
Hello
On Mon, Aug 13, 2007 at 10:42:17PM +0100, Mick wrote:
Hmm, I just checked a utf-8 file after I edited it and it says:
:set encoding
encoding=latin1
I would guess your UTF-8 file has no accents, or other characters. In
other words, it can be considered pure ASCII, which means Vim can
On 13/08/07, Benno Schulenberg [EMAIL PROTECTED] wrote:
Mick wrote:
Hmm, I just checked a utf-8 file after I edited it and it says:
:set encoding
encoding=latin1
I assume this means that it was changed from utf8 to latin1
No. To see what encoding a file has, you could use 'file'.
On 14/08/07, Michal 'vorner' Vaner [EMAIL PROTECTED] wrote:
Hello
On Mon, Aug 13, 2007 at 10:42:17PM +0100, Mick wrote:
Hmm, I just checked a utf-8 file after I edited it and it says:
:set encoding
encoding=latin1
I would guess your UTF-8 file has no accents, or other characters. In
Mick wrote:
Or, I leave Vim encoding alone and run export LANG=en_GB.UTF-8
and Vim will use that.
Did I get this right?
Precisely. But why don't you just try it and see how it behaves?
PS. What I am not entirely sure about is where is the locale set
for my system?
When it's not set
Hi All,
I am trying to find out how I can see what encoding my vim is using. Also
would be good to know how to set it to a different encoding, if I need to.
Some other questions that may help me understand how encoding works:
- My /etc/vim/vimrc says scriptencoding utf-8, does this mean that
Mick schrieb:
Hi All,
I am trying to find out how I can see what encoding my vim is using. Also
would be good to know how to set it to a different encoding, if I need to.
:set encoding
should show you the encoding resently used.
also you can set another encoding with, e.a.:
:set
Mick wrote:
- My /etc/vim/vimrc says scriptencoding utf-8, does this mean
that this is the vim encoding and any new file will be saved with
this encoding?
No, scriptencoding is just the encoding of /etc/vim/vimrc. File
encoding is handled by 'fileencodings' further down.
- If I open a
On 13/08/07, Benno Schulenberg [EMAIL PROTECTED] wrote:
Mick wrote:
- My /etc/vim/vimrc says scriptencoding utf-8, does this mean
that this is the vim encoding and any new file will be saved with
this encoding?
No, scriptencoding is just the encoding of /etc/vim/vimrc. File
encoding is
Mick wrote:
Hmm, I just checked a utf-8 file after I edited it and it says:
:set encoding
encoding=latin1
I assume this means that it was changed from utf8 to latin1
No. To see what encoding a file has, you could use 'file'. Run
'file thefileyouedited', and it should say UTF-8 Unicode
10 matches
Mail list logo