Skip to Content
Mastering Vim
book

Mastering Vim

by Ruslan Osipov
November 2018
Beginner
330 pages
7h 21m
English
Packt Publishing
Content preview from Mastering Vim

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Vim

Mastering Vim

Damian Conway
Vim Masterclass

Vim Masterclass

Jason Cannon
Modern Vim

Modern Vim

Drew Neil

Publisher Resources

ISBN: 9781789341096Supplemental Content