1 set nocompatible " ignore Vi compatibility
2 if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
3 set fileencodings=utf-8,latin1
5 set autoindent " automatic indentation
6 set hlsearch " highlight search
7 set incsearch " incremental search
8 set ignorecase " ignore case
9 set ruler " ruler to show current location
11 "set showmatch " show matching braces
13 set tabstop=2 " tab size = 2 spaces
15 colorscheme jellybeans
16 set nu " show line numbers
17 syntax on " show syntax higlightk
19 "set cursorline " highlight current line
20 "set guifont=Terminus\ 10
23 "set guifont=Monospace\ 7
25 set listchars=tab:•\ ,trail:·
29 "Fix the stupid auto-indentation deletion
30 inoremap <CR> <CR><Space><BS>
31 nnoremap o o<Space><BS>
32 nnoremap O O<Space><BS>
34 "Highlight Long lines (>80chrs):
35 :let w:m1=matchadd('Search', '\%>79v.\+', -1)
36 " :let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
44 "set tw=80 " auto-wrap long lines