1) cp /usr/share/vim/vim70/vimrc_example.vim .vimrc
2)mkdir .vim
mkdir .vim/doc
mkdir .vim/plugin
3)Minibuf
curl -o "/home/tomorrow.chen/.vim/plugin/minibufexpl.vim" http://vim.sourceforge.net/scripts/download_script.php?src_id=3640
4)bufExplorer curl -o "/home/tomorrow.curl -o "/home/tomorrow.chen/.vim/bufexplorer.zip" http://www.vim.org/scripts/download_script.php?src_id=12904 modify .vimrc """"""""""""""""""""""""""""""" BufExplorer""""""""""""""""""""""""""""""let g:bufExplorerDefaultHelp=0 " Do not show default help.let g:bufExplorerShowRelativePath=1 " Show relative paths.let g:bufExplorerSortBy='mru' " Sort by most recently used.let g:bufExplorerSplitRight=0 " Split left.let g:bufExplorerSplitVertical=1 " Split vertically.let g:bufExplorerSplitVertSize = 30 " Split widthlet g:bufExplorerUseCurrentWindow=1 " Open in new window.autocmd BufWinEnter /[Buf/ List/] setl nonumber5)taglistcurl -o "/home/tomorrow.chen/.vim/taglist_45.zip" http://www.vim.org/scripts/download_script.php?src_id=7701修改vimrc
let Tlist_Show_One_File = 1 "不同時顯示多個檔案的tag,只顯示當前檔案的
let Tlist_Exit_OnlyWindow = 1 "如果taglist視窗是最後一個視窗,則退出vim
let Tlist_Use_Right_Window = 1 "在右側視窗中顯示taglist視窗
6)genftag
#!/bin/sh
# generate tag file for lookupfile plugin
echo -e "!_TAG_FILE_SORTED/t2/t/2=foldcase/" > filenametags
find . -not -regex '.*/./(png/|gif/|o/|d/)' -type f -printf "%f/t%p/t1/n" | /
sort -f >> filenametags
7)gencscopes
find . -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.cc" -o -name "*.mak" -o -name "*.mk">cscope.filescscopefiles
8)
http://easwy.com/blog/archives/advanced-vim-skills-cscope/