An open API service indexing awesome lists of open source software.

https://github.com/mipmip/panelmanager.vim

Panel Manager for Vim
https://github.com/mipmip/panelmanager.vim

ide vim vim-ide vim-plugin

Last synced: 9 months ago
JSON representation

Panel Manager for Vim

Awesome Lists containing this project

README

          

# panelmanager.vim

Vim Plugin for managing panel plugins.

* Ask a plugin to open in a panel
* Check the panel position where it should open
* Close the plugin currently occupying that position
* Open the plugin

## Supported Plugins

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

## Example Configuration

```vim

" 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 :call PMToggleView('nerdtree')
map :call PMToggleView('voom')
map :call PMToggleView('linny')

"BOTTOM SIDEBAR IDENTIFIER
map :call PMToggleView('quickfix')

"RIGHT SIDEBAR IDENTIFIER
map :call PMToggleView('tagbar')
map :call PMToggleView('minimap')
```