dot rc

Sign in or create your account | Project List | Help

dot rc Commit Details

Date:2008-10-17 17:15:46 (3 years 3 months ago)
Author:Luciano M. F. Rocha
Commit:9a3ffc647ca2d2ad26779545738217e30e00679c
Message:add byte-order-mark detection to list of file-encodings

Files: rc/vimrc (1 diff)

Change Details

rc/vimrc
33" for its side effects.
44set nocompatible
55
6" use utf8 and latin1 when terminal is utf8
7if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
8  set fileencodings=utf-8,latin1
9endif
6" check for Byte-Order-Mark, then utf8, and finally assume latin1
7set fileencodings=ucs-bom,utf-8,latin1
8" force encoding when reading/writing with:
9" :e|w ++enc=encoding file
1010
1111" allow backspacing over everything in insert mode
1212set backspace=indent,eol,start

Archive Download the corresponding diff file

Branches:
master