Search code examples
vimtaglist

VIM alignment of taglist window on the right


This is my .vimrc:

" Key mappings
:map <F12> :WMToggle<cr>

" configuring taglist
    let Tlist_Use_Right_Window = 1

these are the plugins I've installed:

-rw-r--r-- 1 john john  36129 Nov  8  2010 bufexplorer.vim
-rw-r--r-- 1 john john 147930 Set 21  2007 taglist.vim
-rw-r--r-- 1 john john   2760 Abr  2  2011 vimballPlugin.vim
-rw-r--r-- 1 john john  40661 Jun 30 12:58 winfileexplorer.vim
-rw-r--r-- 1 john john  43224 Jun 30 12:58 winmanager.vim
-rw-r--r-- 1 john john  13418 Jun 30 12:58 wintagexplorer.vim

however the taglist window is still being showed on left. What is wrong here?


Solution

  • How I solve this:

    .vimrc:

    " winmanager definitions
            ...
        let winManagerWindowLayout = 'FileExplorer|BufExplorer'    " just file and buf exp.
    
    " TagList definitions
            ...
        let Tlist_Use_Right_Window = 1
    
    " mappings
        map <silent> <F12> :TlistToggle<cr> :WMToggle<cr>
    

    description: I've extracted TagList from WinManager and defined to open it at the same time WinManager is opened. It's a trick, but works. =D