kuda.ai

Thoughts on programming and music theory.

dark mode

Scroll in tmux with vi bindings

Created on July 10, 2025

tmux

In tmux, you can scroll your pane with your keyboard in copy-mode. You can use vi key bindings to scroll.

Either enter command mode with prefix : and enter the following lines, or add them to your .tmux.conf.

set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
# i3 / X11: 'xclip -in -selection clipboard' # i3 / X11
# wayland:  'wl-copy'
# Mac:      'pbcopy'
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel pbcopy

With that, you can use the following keys to navigate: