set cindent
set smartindent
set autoindent
set nowrap
set ff=unix
set bg=dark
set ruler
set tabstop=4
set number
"set path=/root/work/include,/usr/include,/usr/local/include,/usr/src/include
map <F3> v]}zf
map <F4> zo
map <f5> :25vs ./<cr>:set nunumber<cr>^Ww
map <F6> ^Ww
map <F7> O
map <F8> [i
map <F9> gd
map <F10> "
map <F11> ^]
map <F12> ^T
map ,1 :b!1<cr>
map ,2 :b!2<cr>
map ,3 :b!3<cr>
map ,4 :b!4<cr>
map ,5 :b!5<cr>
map ,6 :b!6<cr>
map ,7 :b!7<cr>
map ,8 :b!8<cr>
map ,9 :b!9<cr>
map ,0 :b!0<cr>
map ,w :bw<cr>
"==================================================
"ctags setting
set tags=./tags,/usr/src/linux-2.4.20-8/tags
if version >= 500
func! Sts()
let st = expand("<cword>")
exe "sts ".st
endfunc
nmap ,st :call Sts()<cr>
func! Tj()
let st = expand("<cword>")
exe "tj ".st
endfunc
nmap ,tj :call Tj()<cr>
endif
"======================================================
"cscope setting
set csprg=/usr/local/bin/cscope
set csto=0
set cst
set nocsverb
if filereadable("./cscope.out")
cs add cscope.out
else
cs add /usr/src/linux-2.4.20-8/cscope.out
endif
set csverb
func! Css()
let css = expand("<cword>")
new
exe "cs find s ".css
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,css :call Css()<cr>
func! Csc()
let csc = expand("<cword>")
new
exe "cs find c ".csc
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,csc :call Csc()<cr>
func! Csd()
let csd = expand("<cword>")
new
exe "cs find d ".csd
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,csd :call Csd()<cr>
func! Csg()
let csg = expand("<cword>")
new
exe "cs find g ".csg
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,csg :call Csg()<cr>
set smartindent
set autoindent
set nowrap
set ff=unix
set bg=dark
set ruler
set tabstop=4
set number
"set path=/root/work/include,/usr/include,/usr/local/include,/usr/src/include
map <F3> v]}zf
map <F4> zo
map <f5> :25vs ./<cr>:set nunumber<cr>^Ww
map <F6> ^Ww
map <F7> O
map <F8> [i
map <F9> gd
map <F10> "
map <F11> ^]
map <F12> ^T
map ,1 :b!1<cr>
map ,2 :b!2<cr>
map ,3 :b!3<cr>
map ,4 :b!4<cr>
map ,5 :b!5<cr>
map ,6 :b!6<cr>
map ,7 :b!7<cr>
map ,8 :b!8<cr>
map ,9 :b!9<cr>
map ,0 :b!0<cr>
map ,w :bw<cr>
"==================================================
"ctags setting
set tags=./tags,/usr/src/linux-2.4.20-8/tags
if version >= 500
func! Sts()
let st = expand("<cword>")
exe "sts ".st
endfunc
nmap ,st :call Sts()<cr>
func! Tj()
let st = expand("<cword>")
exe "tj ".st
endfunc
nmap ,tj :call Tj()<cr>
endif
"======================================================
"cscope setting
set csprg=/usr/local/bin/cscope
set csto=0
set cst
set nocsverb
if filereadable("./cscope.out")
cs add cscope.out
else
cs add /usr/src/linux-2.4.20-8/cscope.out
endif
set csverb
func! Css()
let css = expand("<cword>")
new
exe "cs find s ".css
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,css :call Css()<cr>
func! Csc()
let csc = expand("<cword>")
new
exe "cs find c ".csc
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,csc :call Csc()<cr>
func! Csd()
let csd = expand("<cword>")
new
exe "cs find d ".csd
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,csd :call Csd()<cr>
func! Csg()
let csg = expand("<cword>")
new
exe "cs find g ".csg
if getline(1) == " "
exe "q!"
endif
endfunc
nmap ,csg :call Csg()<cr>
'Linux' 카테고리의 다른 글
IP spoof에 관하여 (0) | 2013.09.26 |
---|---|
list_entry (0) | 2013.09.26 |
[command] find (0) | 2013.09.26 |
터미널을 영문으로 출력하게 (terminal english) export LANG=en_us or LANG=C (0) | 2013.09.26 |
ctags (0) | 2013.09.26 |