Skip to content

Instantly share code, notes, and snippets.

@windsting
Last active December 31, 2017 17:47
Show Gist options
  • Save windsting/b27949aa7ba627482b10dda8d1675a63 to your computer and use it in GitHub Desktop.
Save windsting/b27949aa7ba627482b10dda8d1675a63 to your computer and use it in GitHub Desktop.
Use vi-mode in Tmux

Use vi-mode in Tmux

Reason

  • The default copy-mode in tmux vary from one to another operating system
  • The emacs-mode set Start selection to C-Space, which always been used by OS as Switch Input Method between ...

How

  1. Add this line in the config file, i.e: ~/.tmux.conf:
    set-window-option -g mode-keys vi
  2. Reload tmux config file with either of thes ways:
    1. With tmux command, pressing Ctrl+B and then : to bring up a command prompt, and typing:
      :source-file ~/.tmux.conf
    2. Or simply from a shell:
      tmux source-file ~/.tmux.conf

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment