Hacker News new | ask | show | jobs
by pfranz 4048 days ago
I see lots of discussion about using tmux and vim together. Most of the articles are more about configuring each instead of how that persons workflow. I get stuck on this problem; where to draw the line between tmux splits and vim splits (and by extension window management).

When do you do use tmux for splitting versus vim? What are your key bindings for creating, resizing, and navigating each?

Personally, I drop back to the shell constantly so I tend to launch a lot of separate vims. The only time I use vim splits are if it explicitly occurs to me or if I'm using vimdiff. This means I have a lot of problems copy/pasting or end up opening the same file in multiple vim sessions (but different tmux panes/windows).

1 comments

Even without any configuration the workflow of using tmux for panes and windows and within I start and quit vim as required seems totally fine.
Oh yeah, it's not a problem or conflict. Many of the examples people give tend to remap similar or the same keys for splitting in vim and tmux or navigating between splits (alt or ctrl + hjkl for navigating them).

I'm looking for more of a mental model or workflow of when to use vimsplits over tmux splits and how to navigate. I generally avoid vimsplits because I haven't found a good workflow to use both and my muscle memory gets messed up when I mix them.