安裝trinity plugin後, vim 可以很像 SourceInsight的環境
先至 http://www.vim.org/
下載vim-7.2.tar.bz2
tar jxvf vim-7.2.tar.bz2
cd vim72
./configure --enable-cscope --enable-multibyte
make
make install
接著至 http://www.vim.org/scripts/script.php?script_id=2347
下載 trinity.zip
將解開的所有東西, 複製到/usr/local/share/vim/vim72/plugin/
接著設定家目錄下的.vimrc加入以下
" Open and close all the three plugins on the same time
nmap <F8> :TrinityToggleAll<CR>
" Open and close the srcexpl.vim separately
nmap <F9> :TrinityToggleSourceExplorer<CR>
" Open and close the taglist.vim separately
nmap <F10> :TrinityToggleTagList<CR>
" Open and close the NERD_tree.vim separately
nmap <F11> :TrinityToggleNERDTree<CR>
至http://www.vim.org/scripts/script.php?script_id=1338
下載tabbar.vim,也是複製到/usr/local/share/vim/vim72/plugin/
安裝成功後畫面如最上面的圖片
通常按F8 所有視窗都出來後,我會再按F9關掉Source explorer的視窗。因為Source explorer 會導致我主視窗速度變慢 (因為它試著利用 ctags 資料庫去找跟游標所在位置有關的程式片段。)
This entry was posted
on 2009年5月1日 星期五
at 中午12:09
and is filed under
Linux
. You can follow any responses to this entry through the
comments feed
.