tmux/Q/How can I enable vi keys for everything in tmux from the command prompt without editing the config?
Properties
- logseq-entity
- Logseq/Entity/Question, Logseq/Entity/Card
How can I enable vim keys for everything in tmux from the tmux/Command/Prompt without editing the config? card
- tmux/Command/Prompt (
Prefix :)set -g mode-keys vi- sets vi controls in tmux/Option/mode-keys (scrolling, search, text selection)
set -g status-keys vi- sets vi controls in tmux/Option/status-keys (tmux/Command/Prompt, rename prompt, search prompts)
- these are runtime-only; it will be gone again after
tmux kill-server
AI Answer
- Short answer: Press
Prefix :and runset -g mode-keys vi, then repeat forset -g status-keys vi. Two commands, done. Changes are runtime-only—they vanish aftertmux kill-server. The two options
- tmux/Option/mode-keys — controls tmux/Mode/Copy, scrolling, search, and text selection. Default is
emacs. - tmux/Option/status-keys — controls the tmux/Command/Prompt (
Prefix :, rename prompts, search prompts). Default isemacsunless$VISUALor$EDITORcontainsvi.
- tmux/Option/mode-keys — controls tmux/Mode/Copy, scrolling, search, and text selection. Default is
Steps at the command prompt
From the shell (outside tmux)
Persistence caveat
- Short answer: Press
- tmux/Command/Prompt (