r/vim • • Feb 22 '20

Lens.vim: A Vim Automatic Window Resizing Plugin

662 Upvotes

48 comments sorted by

View all comments

2

u/worldpotato1 Feb 22 '20

Does it work good with nerdtree?

1

u/aaron__ireland Feb 22 '20

It works well with NerdTree, it makes the NerdTree window a bit larger than I am used to, but all the other windows slide very nicely to accommodate!

1

u/metanat Feb 23 '20

I've added the ability to disable the behavior for certain filetypes:

I don't use nerdtree but something like this should work:

let g:lens#disabled_filetypes = ['nerdtree']

1

u/ShortVodka Feb 24 '20

Firstly this plugin is great! I've always wanted something like it but didn't even know how to describe it.

I have the same issue with nerdtree and Gundo that end up all over the place when toggling. I tried the disabled file types but it doesn't seem to work in some cases.

Also, it would be really nice if when a window is closed it resizes them all to fit better. If a window is opened that squishes them down, then you close one, you end up with a very big window and a squished one until you switch over to it.

Again, really awesome work :)