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
- Host: GitHub
- URL: https://github.com/mipmip/panelmanager.vim
- Owner: mipmip
- License: mit
- Created: 2019-07-01T21:42:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T18:54:44.000Z (about 5 years ago)
- Last Synced: 2025-02-05T21:56:10.401Z (11 months ago)
- Topics: ide, vim, vim-ide, vim-plugin
- Language: Vim script
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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')
```