Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blueyed/vim-qf_resize
Resize location/quickfix windows in (Neo)Vim
https://github.com/blueyed/vim-qf_resize
quickfix-window vim
Last synced: 16 days ago
JSON representation
Resize location/quickfix windows in (Neo)Vim
- Host: GitHub
- URL: https://github.com/blueyed/vim-qf_resize
- Owner: blueyed
- License: mit
- Created: 2017-04-01T22:22:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-25T08:19:20.000Z (about 3 years ago)
- Last Synced: 2024-10-20T06:23:26.896Z (18 days ago)
- Topics: quickfix-window, vim
- Language: Vim script
- Size: 43.9 KB
- Stars: 33
- Watchers: 6
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-qf_resize
Automatically resize quickfix and location list windows.
This Vim plugin resizes location/quickfix windows based on the number of lines
therein, i.e. with a single list entry, why waste 9 extra lines (with the
default window height being 10)?!## Config
### `g:qf_resize_min_height`
Minimum height (in lines) for quickfix windows.
If not specified, it will use some (experimental) internal defaults, falling
back to 1.
Can be a buffer setting (for the qf buffer).### `g:qf_resize_max_height`
Maximum height (in lines) for quickfix windows. Default: 10.
Can be a buffer setting (for the qf buffer).### `g:qf_resize_max_ratio`
Ratio used to get the dynamic max height.
It gets multiplied with the sum of the height of the non-qf window and the
height of the qf window. The default is `0.15`.
Can be a buffer setting (for the qf buffer).### `g:qf_resize_on_win_close`
Resize/handle all qf windows when a window gets closed. Default: 1.
## Commands
### `QfResizeWindows`
Resize all quickfix/location list windows on the current tab page.
This is useful in a custom mapping (extending the default
Ctrl-w =):nnoremap = :wincmd =:QfResizeWindows
## Related plugins
- [vim-qf](https://github.com/romainl/vim-qf) provides a similar feature
(`g:qf_auto_resize`), without handling `:lopen`/`:copen` etc in general,
but only when opening windows itself, and is less advanced in general (no
ratio etc).