-
Notifications
You must be signed in to change notification settings - Fork 0
A vim global plugin that allows for quick window sizing
vim-scripts/vimsizer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=3057 Vimsizer is a simple plugin that was inspired by the Firesizer (https://addons.mozilla.org/en-US/firefox/addon/5792) extension for Firefox. This plugin gives you the ability to define a re-usable set of window dimensions. There are two default sizes that are defined with the vs_window_sizes variable: let vs_window_sizes = {"normal": "150 40", "bigger": "210 50"} You can define your own set of sizes. Example: let vs_window_sizes = {"miniscule": "25 10", "magiscule": "200 60"} Once the window sizes have been defined then you can use the VSSelectWindowSize command to switch. Example: :VSSelectWindowSize bigger :VSSelectWindowSize normal You can also quickly switch to any specific size you like with the VSWindowSize command: :VSWindowSize 100 20 You can use the autogroup command to set the window size on startup. Example: au VimEnter * exe 'VSSelectWindowSize normal' This would set the window size to normal upon entering vim for the first time. You could also map a shortcut key to a window size. Example: map <leader>1 :VSSelectWindowSize normal<CR> map <leader>2 :VSSelectWindowSize bigger<CR> The latest code is available on Github: http://github.com/claytron/vimsizer
About
A vim global plugin that allows for quick window sizing
Resources
Stars
Watchers
Forks
Packages 0
No packages published