O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Panes are just like splits

tmux allows you to have multiple panes (the equivalent of windows in Vim) and windows (the equivalent of tabs). To access tmux functionality, you first need to hit a prefix key, followed by a command. The default prefix key is Ctrl + b.

You can rebind the default prefix key to something else by creating or editing your ~/.tmux.conf file. For example, if you wanted to use Ctrl + \ as a prefix instead of Ctrl + b, you would add the following: # Use Ctrl-\ as a prefix. unbind-key C-b set -g prefix 'C-\' bind-key 'C-\' send-prefix Restart tmux (or execute Ctrl + b followed by :source-file ~/.tmux.conf) to apply the configuration.

To split the screen vertically, use Ctrl + b followed by %:

For some reason, I could ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required