PandoraQuickStart.desktop: Removed a ;
[openpandora.oe.git] / recipes / pandora-system / pandora-skel / vimrc
1 " begin ~/.vimrc
2
3 " don't use vi mode as default
4 " have vim behave in a more useful way that is not vi compatible
5 set nocompatible
6
7 " show the current row and column at the bottom right of the screen.
8 set ruler
9
10 " minimum width for  line numbers in the ruler
11 set numberwidth=3
12
13 " tell vim to use colors which look good on a dark background (default terminal on pandora is dark!)
14 set background=dark
15
16 " configure backspace behaviour:
17 "  value   effect  ~
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
23
24
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.
28
29 " {{{ Locale settings
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.
33 if v:lang =~? "^ko"
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
44   set guifontset=*-r-*
45 endif
46
47 " If we have a BOM, always honour that rather than trying to guess.
48 if &fileencodings !~? "ucs-bom"
49   set fileencodings^=ucs-bom
50 endif
51
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
56   " files.
57   let g:added_fenc_utf8 = 1
58   set fileencodings+=utf-8
59 endif
60
61 " Make sure we have a sane fallback for encoding detection
62 if &fileencodings !~? "default"
63   set fileencodings+=default
64 endif
65 " }}}
66
67 " end ~/.vimrc