This requires a solution that requires a little editing in the taglist.vim script. I have not developed all the possible consequences, but it seems to still work well. Change the function "Tlist_Window_Create" to "taglist.vim" to include the elseif
statement shown here:
... " Create a new window. If user prefers a horizontal window, then open " a horizontally split window. Otherwise open a vertically split " window if g:Tlist_Use_Horiz_Window " Open a horizontally split window let win_dir = 'botright' " Horizontal window height let win_size = g:Tlist_WinHeight elseif g:Tlist_Use_Split_Window " Open the window in a horizontal split of current window let win_dir = 'abo' let win_size = g:Tlist_WinWidth else ...
I inserted this start on line 1290 in the last TagList (v4.5). Then add the following to your .vimrc
let Tlist_Use_Split_Window = 1 com TT NERDTree | TlistToggle
Now the command :TT
opens the TagList over NERDTree in one vertical window. How it is not completely divided halfway, but it is close. If you prefer a tree on top, change abo
above to split
.
pedorro
source share