(Tmux) Enable Vi mode in window buffer
Enabling Vi mode in tmux allows for using Vi commands and hotkeys when navigating through
the window output buffer (entered by <ctrl-b> [
).
-
Enter
set-window-option -g mode-keys vi
into.tmux.conf
. -
Restart tmux or reload
.tmux.conf
. -
In window buffer, one can now use functions such as the following:
/<keyword>
to search for occurrences of<keyword>
; usen
andN
to move between matches- Use
hjkl
to move cursor around - Use
gg
andG
to move to the top and bottom of the buffer, respectively
Reference:
Written on February 24, 2021