由前同事bboy 介紹,vim 強大plugin trinity,比Neo 還神的三位一體,可以將vim 打造文字模式的source insight。取這個名稱的原因是他將三個不同的plugin整合起來,分別是:
可以顯示宣告的 "Source Explore" 利用ctags 在右邊顯示key word的 "taglist" 可以顯示當前檔案目錄結構的 "NERD_tree"
成果就是這樣
使用方式
下載 trinity (含修正過的NERD_tree), Source Explore和Taglist,放到自已存plugin的地方,順道一提預設的位罝是 $HOME/.vim/plugin,不要跟我傻傻一樣一個一個source。,然後在.vimrc加入
開程式檔的時候按個F8就會跑出來了,不過據說Source Explorer 很吃資源,有些人會把他關掉,請視自已的狀況調整,後應該要再改成認附檔名自動啟用,我不會
成果就是這樣
使用方式
下載 trinity (含修正過的NERD_tree), Source Explore和Taglist,放到自已存plugin的地方,順道一提預設的位罝是 $HOME/.vim/plugin,不要跟我傻傻一樣一個一個source。,然後在.vimrc加入
" Open and close all the three plugins on the same time
nmap :TrinityToggleAll
" Open and close the srcexpl.vim separately
nmap :TrinityToggleSourceExplorer
" Open and close the taglist.vim separately
nmap :TrinityToggleTagList
" Open and close the NERD_tree.vim separately
nmap :TrinityToggleNERDTree
開程式檔的時候按個F8就會跑出來了,不過據說Source Explorer 很吃資源,有些人會把他關掉,請視自已的狀況調整,後應該要再改成認附檔名自動啟用,我不會
全站熱搜
留言列表