(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 viinto.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>; usenandNto move between matches- Use
hjklto move cursor around - Use
ggandGto move to the top and bottom of the buffer, respectively
Reference:
Written on February 24, 2021
