r/vim • • Feb 22 '20

Lens.vim: A Vim Automatic Window Resizing Plugin

662 Upvotes

48 comments sorted by

View all comments

51

u/metanat Feb 22 '20

You can find the plugin at camspiers/lens.vim. The idea behind this plugin is to resize windows (on enter) to a minimal viewport that allows you to see meaningful content if the current size of the window is too small. This is the first plugin I've written that (optionally) integrates with the animate.vim library for window animation, and so provides an example of how other plugin might do that too.

10

u/Jdj8af Feb 22 '20

Wow I didnt know about animate.vim, this is awesome!! Thank you for contributing!

1

u/Easy-Dima Feb 25 '20

I've written the similar thing for Neovim
Today I realized that there are bunch of such plugins)