r/vim • • Feb 22 '20

Lens.vim: A Vim Automatic Window Resizing Plugin

662 Upvotes

48 comments sorted by

View all comments

2

u/tassulin Feb 22 '20

Damn this was something that I always needed but never knew. There should also be a toggle that can disable this function easily if needed.

1

u/metanat Feb 23 '20

You can now run lens#toggle() to disable

1

u/tassulin Feb 25 '20

Hi! Thanks this plugin is awesome. Especially with the animatino. Yet I havent figured out how to run the toggle command.

I tried

:lens#toggle()

as vim command but its just giving me that its not editor command.

1

u/metanat Feb 25 '20

:call lens#toggle()

1

u/metanat Feb 22 '20

Thanks for the suggestion! You can set let g:lens#disabled = 1, but it would be nice to provide a toggle function too.