set up my vim

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 width
let g:bufExplorerUseCurrentWindow=1  " Open in new window.
autocmd BufWinEnter /[Buf/ List/] setl nonumber
5)taglist
curl -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/

你可能感兴趣的:(set up my vim)