[VIM] Vim Example setting

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
source $VIMRUNTIME/indent.vim
behave mswin
set guifont=Monaco:h14
set ai
set nocp
set nocompatible
set nopaste
set pastetoggle=
set hls
set shiftwidth=4
set tabstop=4
set showmatch
set background=light
set display=lastline
colorscheme desert
syntax on
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
filetype plugin on
filetype indent on
autocmd BufWritePre * :%s/\s\+$//e
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
autocmd BufEnter *.php :%s/[ \t\r]\+$//e
autocmd BufWritePre *.pl :%s/\s\+$//e
set fileencodings=utf8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1
set encoding=utf8
set tenc=utf8
set termencoding=utf-8
autocmd FileType python set expandtab
set ru
set sc
set smd
set nu
set ch=2
set nocompatible
set backspace=2
Licensed under CC BY-NC-SA 3.0 TW
comments powered by Disqus