2013年9月6日 星期五

更新.vimrc

~/.vimrc.html
 1 set nocompatible
 2 filetype off
 3 set rtp+=~/.vim/bundle/vundle/
 4 call vundle#rc()
 5 
 6 "let Vundle manage Vundle
 7 "required! 
 8 Bundle 'gmarik/vundle'
 9 Bundle 'Shougo/neocomplete.vim'
10 Bundle 'Shougo/vimproc.vim'
11 Bundle 'Shougo/vimshell.vim'
12 Bundle 'mbbill/echofunc'
13 
14 " Disable AutoComplPop. 
15 let g:acp_enableAtStartup = 0
16 " Use neocomplete.
17 let g:neocomplete#enable_at_startup = 1
18 " Use smartcase.
19 let g:neocomplete#enable_smart_case = 1
20 " Set minimum syntax keyword length.
21 let g:neocomplete#sources#syntax#min_keyword_length = 3
22 let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
23 
24 " Define dictionary.
25 let g:neocomplete#sources#dictionary#dictionaries = {
26      \ 'default' : '',
27      \ 'vimshell' : $HOME.'/.vimshell_hist',
28      \ 'scheme' : $HOME.'/.gosh_completions'
29 \ }
30 " Define keyword.
31 if !exists('g:neocomplete#keyword_patterns')
32     let g:neocomplete#keyword_patterns = {}
33 endif
34 let g:neocomplete#keyword_patterns['default'] = '\h\w*'
35 
36 set number
37 set showcmd
38 set showmatch
39 set hlsearch
40 set incsearch
41 set sw=4
42 set ts=4
43 syntax on
44 filetype indent on
45 filetype plugin on "~/.vim/syntax "omni-complete ~/.vim/autoload ^x^n
46 set smarttab
47 set sidescroll=1
48 set guifont=Inconsolata\ Medium\ 14
49 set guifontwide=YaHei\ Mono\ 14
50 set laststatus=2
51 set statusline=%F%m%r%h%w\ [%{&ff}]\ [%Y]\ [%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\ [ASCII=\%03.3b]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]\ %=[%{GitBranch()}]
52 set backspace=2
53 set clipboard=unnamedplus
54 set autoindent
55 set smartindent
56 set cindent
57 "set spell
58 set encoding=utf-8
59 set makeprg=
60 set smartcase
61 set ruler
62 set cursorline
63 colors koehler
64 if has("gui_running")
65 else
66     set t_Co=16
67     "hi CursorLine cterm=NONE ctermbg=DarkGray ctermfg=NONE guibg=NONE guifg=NONE
68     hi CursorLine cterm=bold ctermbg=black ctermfg=NONE guibg=NONE guifg=NONE
69 endif
70 set fileencodings=ucs-bom,utf-8,euc-jp,cp936,big5,gb18030,euc-kr,latin1
71 set guioptions=aegimrLt
72 autocmd BufNewFile,BufRead *.mip :set syntax=mips
73 autocmd BufNewFile,BufRead *.S :set syntax=mips
74 if has("gui_running")
75 set langmenu=zh_TW.UTF-8
76 source $VIMRUNTIME/delmenu.vim
77 source $VIMRUNTIME/menu.vim
78 language messages zh_TW.utf-8
79 endif
80 
81 "let Tlist_Use_Right_Window=1                 " 在右側窗口中顯示
82 let Tlist_File_Fold_Auto_Close=1             " 自動摺疊 
83 let Tlist_Sort_Type = "name"
84 let Tlist_Show_One_File = 1
85 
86 let g:LargeFile=10
87 "let g:EclimTaglistEnabled=0
88 set csprg=gtags-cscope " use fake cscope
89 set cst "use cscope to get tags
90 cs a GTAGS . -C
91 "au BufWinLeave ?* mkview
92 "au BufWinEnter ?* silent loadview