3 " don't use vi mode as default
4 " have vim behave in a more useful way that is not vi compatible
7 " show the current row and column at the bottom right of the screen.
10 " minimum width for line numbers in the ruler
13 " tell vim to use colors which look good on a dark background (default terminal on pandora is dark!)
16 " configure backspace behaviour:
18 " indent allow backspacing over autoindent
19 " eol allow backspacing over line breaks (join lines)
20 " start allow backspacing over the start of insert; CTRL-W and CTRL-U
21 " stop once at the start of insert.
22 set backspace=indent,eol,start
25 "The following config settings are taken from gentoo and meant to eg make
26 "special encodings work better, some might require the user to change the
27 "locale setting as well as adding additional fonts.
30 " Try to come up with some nice sane GUI fonts. Also try to set a sensible
31 " value for fileencodings based upon locale. These can all be overridden in
32 " the user vimrc file.
34 set fileencodings=euc-kr
35 set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-*
36 elseif v:lang =~? "^ja_JP"
37 set fileencodings=euc-jp
38 set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*
39 elseif v:lang =~? "^zh_TW"
40 set fileencodings=big5
41 set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
42 elseif v:lang =~? "^zh_CN"
43 set fileencodings=gb2312
47 " If we have a BOM, always honour that rather than trying to guess.
48 if &fileencodings !~? "ucs-bom"
49 set fileencodings^=ucs-bom
52 " Always check for UTF-8 when trying to determine encodings.
53 if &fileencodings !~? "utf-8"
54 " If we have to add this, the default encoding is not Unicode.
55 " We use this fact later to revert to the default encoding in plaintext/empty
57 let g:added_fenc_utf8 = 1
58 set fileencodings+=utf-8
61 " Make sure we have a sane fallback for encoding detection
62 if &fileencodings !~? "default"
63 set fileencodings+=default