Hello, Tmux enthusiasts! Ever find yourself lost in a sea of horizontal windows, longing for a bit of vertical variety? Then you’ve come to the right place! In this blog post, I’m going to show you exactly how you can switch your Tmux windows vertically. It’s easier than you might think, and it can significantly improve your workflow. So, without further ado, let’s dive into the world of Tmux and learn how to switch our windows vertically!
For the Tmux novices among us, check out the fundamentals of Tmux first. The rest of us can hit the ground running. Ready, set, go!
Let’s say you have already created one or more tmux sessions, with several windows and panes. We will discuss how you can split window vertically to produce 2 horizontal panes thereby creating a new pane.
Split window vertically to create 2 panes
Let’s consider the case where you are inside your tmux pane i.e., your cursor is active in a pane.
You can use the following keyboard shortcut to switch to another pane-
Prefix + "
By default the prefix is Ctrl-B
, so to split tmux window vertically you can run the following command-
Ctrl-B + "
You can also create a pane horizontally in tmux thereby making your terminal experience more productive.
I hope you found this article useful, glad that you found it easy to split window vertically to panes in Tmux. So, that’s all there is to it! You’ve successfully learned how to switch your Tmux windows vertically. Remember, mastering Tmux is all about understanding the ins and outs of its versatile command system, and vertical window switching is just one of the many tricks Tmux has up its sleeve. So keep practicing, keep exploring, and take your Tmux game to the next level. Stick around for more Tmux insights and tips. Happy coding!
You can also check out the complete tmux cheatsheet of keyboard shortcuts and mouse shortcuts.