Download Vim script

http://www.vim.org/

 

Source Explorer

SrcExpl a Source code Explorer which works like the context window of "Source Insight"

NERD Tree

The NERD Tree A tree explorer plugin for navigating the filesystem

Tag List

taglist.vim Source code browser (supports C/C++, java, perl, python, tcl, sql, php, etc)

 

 

.vim tree

vim configuration

# cd ~

# vi .vimrc

".........................................."
" vim
".........................................."
set nu
set ai
set ts=4
set bg=dark


".........................................."
" ctags database path
".........................................."
set tags=/home/steo/FH7200/src/kernel/stblinux-2.6.37/tags

".........................................."
" cscope database path
".........................................."
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb

"cscope DB location
cs add /home/steo/FH7200/src/kernel/stblinux-2.6.37/cscope.out /home/steo/FH7200/src/kernel/stblinux-2.6.37
set csverb

".........................................."
" Tag List
".........................................."
filetype on
nmap <F7> :TlistToggle<CR>
let Tlist_Ctags_Cmd = "/usr/bin/ctags"
let Tlist_Inc_Winwidth = 0
let Tlist_Exit_OnlyWindow = 0

let Tlist_Auto_Open = 0
let Tlist_Use_Right_Window = 1

".........................................."
" Source Explorer
".........................................."
nmap <F8> :SrcExplToggle<CR>
nmap <C-H> <C-W>h
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-L> <C-W>l

let g:SrcExpl_winHeight = 8
let g:SrcExpl_refreshTime = 100
let g:SrcExpl_jumpKey = "<ENTER>"
let g:SrcExpl_gobackKey = "<SPACE>"
let g:SrcExpl_isUpdateTags = 0

".........................................."
" NERD Tree
".........................................."
let NERDTreeWinPos = "left"
nmap <F9> :NERDTreeToggle<CR>

 

# vi mkcscope.sh

#!/bin/sh

rm -rf cscope.files cscope.out
find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
cscope -b -i cscope.files

 

 

 

Posted by eoseontaek