2016年3月29日 星期二

vim套件 - Linux界的Sourceinshgit Trinity

1. Trinity : the Trinity of taglist, NERDtree and SrcExpl: an IDE works like "Source Insight"
The Trinity plugin manages Source Explorer, Taglist and NERD Tree, and build them as a great IDE which works like the "Source Insignt".
http://www.vim.org/scripts/script.php?script_id=2347

安裝Trinity,必須結合以下三個套件
1\ Automatic Display of Declarations in the Context Window on the bottom in the (G)VIM window using the script named 'Source Explorer(srcexpl.vim)' :
http://www.vim.org/scripts/script.php?script_id=2179

2\ Symbol Windows For Each File on the left in the (G)VIM window (G)VIM using the script named 'taglist.vim':
http://www.vim.org/scripts/script.php?script_id=273

3\ Quick Access to All Files on the right in the (G)VIM window using the script named 'The NERD tree(NERD_tree.vim)':
http://www.vim.org/scripts/script.php?script_id=1658

2. 安裝流程
1\ Unzip the 'trinity.zip', and copy all the script files into to the plugin directory of Vimfiles, such as ~/.vim/plugin/ 
3.1. Trinity語法
" 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> 
3.2. taglist語法
map <F9> :Tlist<CR>
3.3. NERDTree語法
map <F9> :NERDTree<CR>

? Help
i: open file on split windows
t: open file on tab
o: Open file / directory
x: close directory
q: close

沒有留言:

張貼留言