title: TMUX using HJKL to navigate panes
body: <p>Standard TMUX is set to use ctrl-b + [up, down, left, right] when navigating between panes. </p>
  
  <p>I would like to make it so that I can use ctrl-b (or the prefix of my choice) + [h,j,k,l].</p>
  
  <p>I thought I had done this with the following vi key in my <code>~/.tmux.conf</code> settings:</p>
  
  <pre><code>set -g status-keys vi
  setw -g mode-keys vi
  </code></pre>
  
  <p>Yet this didn't seem to change anything (at least not what I was looking for). How can I get this to work. And yes my <code>.tmux.conf</code> is working properly. I can provide more info if needed. </p>
  
  <p>Update: </p>
  
  <p>Here is my full .tmux.conf after trying to get it to work:</p>
  
  <pre><code>set -g status-keys vi
  setw -g mode-keys vi
  
  set -g prefix C-a
  unbind C-b
  bind C-a send-prefix
  
  
  # smart pane switching with awareness of vim splits
  bind h select-pane -L
  bind j select-pane -D
  bind k select-pane -U
  bind l select-pane -R
  </code></pre>
  
  <p>Alternatively, I have tried using this w/ vim-tmux-navigator Vim plugin:</p>
  
  <pre><code># smart pane switching with awareness of vim splits
  bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim &amp;&amp; tmux send-keys C-h) || tmux select-pane -L"
  bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim &amp;&amp; tmux send-keys C-j) || tmux select-pane -D"
  bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim &amp;&amp; tmux send-keys C-k) || tmux select-pane -U"
  bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim &amp;&amp; tmux send-keys C-l) || tmux select-pane -R"
  bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim &amp;&amp; tmux send-keys 'C-\\') || tmux select-pane -l"
  </code></pre>
  
  <p><a href="https://robots.thoughtbot.com/seamlessly-navigate-vim-and-tmux-splits">source</a></p>
  
  <p>Which also doesn't work either. I am a bit stumped. </p>