GitHub - mipmip/panelmanager.vim: Panel Manager for Vim

Vim Plugin for managing panel plugins.

Any plugin that opens in a split window and has a open and a close command.

" Run this before every other command
call panelmanager#init()

" REGISTER PLUGIN AND THEIR PANEL POSITION

                         POSITION  IDENTIFIER, OPEN COMMAND     CLOSE COMMAND

call PMRegisterPanelView('left',   'nerdtree', 'NERDTree',      'NERDTreeClose')
call PMRegisterPanelView('left',   'voom',     'Voom markdown', 'Voomquit')
call PMRegisterPanelView('left',   'linny',    'LinnyMenuOpen', 'LinnyMenuClose')
call PMRegisterPanelView('bottom', 'quickfix', 'copen',         'cclose')
call PMRegisterPanelView('right',  'minimap',  'Minimap',       'MinimapClose')
call PMRegisterPanelView('right',  'tagbar',   'Tagbar',        'TagbarClose')

" MAP KEYS TO PLUGINS

"LEFT SIDEBAR                 IDENTIFIER
map <F1>  :call PMToggleView('nerdtree')<CR>
map <F2>  :call PMToggleView('voom')<CR>
map <F3>  :call PMToggleView('linny')<CR>

"BOTTOM SIDEBAR               IDENTIFIER
map <F5>  :call PMToggleView('quickfix')<CR>

"RIGHT SIDEBAR                IDENTIFIER
map <F9>  :call PMToggleView('tagbar')<CR>
map <F10> :call PMToggleView('minimap')<CR>