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:
jgo down a linekgo up a linectrl dgo down half a pagectrl ugo up half a page/search down?search upnselect next wordNselect previous word