r/vim • • Feb 22 '20

Lens.vim: A Vim Automatic Window Resizing Plugin

662 Upvotes

48 comments sorted by

View all comments

19

u/mrpossible1320 Feb 22 '20

cool, is there any similar thing for tmux? normally I would prefer opening 4 tmux panes than 4 vim panes.

22

u/akoustikal Feb 22 '20

Really? To each their own, but I can’t imagine tmux panes as a substitute for vim windows. You lose auto-completion and context switching, which are part of the reason I love vim. That said, animated tux window management sounds awesome.

1

u/grep_Name Feb 22 '20

lose auto-completion and context switching

I don't currently use auto completion, but does it really work per window?

Also, you should check out https://github.com/christoomey/vim-tmux-navigator to avoid the context switching problem, it basically lets you switch between vim/tmux panes seamlessly with one set of bindings.

I will say that I use vim windows whenever possible though. My great unsolved problem with replacing vim splits with tmux windows is my vim windows then having different buffer lists. That bugs the crap out of me

3

u/scholeszz Feb 22 '20

And different clipboards, jump lists, marks etc. I personally would be annoyed to hell within the first 30 minutes, but to each their own.

1

u/x_ero 0xAC1D0000 Feb 22 '20

i agree a tmux split with two vim sessions are not the best. but it happens to me sometimes, but more often its another tmux workspace/tab that gets a second instance of vim open in it.

i use these three plugins in tandem to unify tmux and vim movements, splits, resizes and their clipboards with my system wide one.

check out my dotfiles for more

-2

u/MichelleObamasPenis Feb 22 '20 edited Feb 22 '20

What? Your link to your dotfiles is "https://git.io/.vim" which forwards to your github page

   https://github.com/xero/dotfiles/tree/master/vim

What's with that?

I turned all reddit scripting AND CSS off (uuugly), and still its "https://git.io/.vim".

I am just presuming that you don't own the git.io domain.

2

u/hupfdule Feb 23 '20

Go to http://git.io and you will know.