set up my vim

來源:互聯網
上載者:User

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/
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.