2012年12月20日 星期四

new .vimrc with gtags replace cscope and ctags

~/.vimrc.html
 1 set number
 2 set showcmd
 3 set showmatch
 4 set hlsearch
 5 set incsearch
 6 syntax on
 7 filetype indent on
 8 filetype plugin on "~/.vim/syntax "omni-complete ~/.vim/autoload ^x^n
 9 colors koehler
10 set sw=2
11 set ts=2
12 set smarttab
13 set sidescroll=1
14 set guifont=Inconsolata\ Medium\ 16
15 set guifontwide=YaHei\ Mono\ 16
16 set laststatus=2
17 set statusline=%F%m%r%h%w\ [%{&ff}]\ [%Y]\ [%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\ [ASCII=\%03.3b]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]\ %=[%{GitBranch()}]
18 set backspace=2
19 set clipboard=unnamedplus
20 set autoindent
21 set smartindent
22 set cindent
23 "set spell
24 set encoding=utf-8
25 set makeprg=
26 set smartcase
27 set ruler
28 set cursorline
29 set fileencodings=ucs-bom,utf-8,big5,euc-jp,cp936,gb18030,euc-kr,latin1
30 set guioptions=aegimrLt
31 autocmd BufNewFile,BufRead *.mip :set syntax=mips
32 autocmd BufNewFile,BufRead *.S :set syntax=mips
33 set langmenu=zh_TW.UTF-8
34 source $VIMRUNTIME/delmenu.vim
35 source $VIMRUNTIME/menu.vim
36 language messages zh_TW.utf-8
37 
38 let g:LargeFile=10
39 "let g:EclimTaglistEnabled=0
40 set csprg=gtags-cscope " use fake cscope
41 set cst "use cscope to get tags
42 cs a GTAGS . -C
43 

沒有留言:

張貼留言