Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • 4
    How can I set the binding style? (emacs vs vi)
    – Daniel Que
    Commented Aug 12, 2014 at 22:39
  • 2
    @DanielQue: Take a look at the tmux man page and search for "mode-keys" and "status-keys". Those are sub-commands that allow you to set the binding style. Alternately, it might be simpler to set an environment variable (EDITOR or VISUAL) to the style you want before starting tmux. Commented Aug 12, 2014 at 22:55
  • 8
    Thanks, I got it to work with set-window-option -g mode-keys vi in my .tmux.conf. But I was curious about the environment variable alternative and couldn't get it to work. Is it a shell environment variable, or a tmux environment variable that has to be set in the conf file?
    – Daniel Que
    Commented Aug 12, 2014 at 23:38
  • 2
    @DanielQue: A shell environment variable. It will need to be exported or placed in tmux's envrionment like this: VISUAL=vi tmux Commented Aug 13, 2014 at 4:54
  • 1
    Also note that there is no regex search yet, here is an open issue on it sourceforge.net/p/tmux/tickets/9 Commented Oct 28, 2014 at 20:58