Hacker News new | ask | show | jobs
by euoia 4500 days ago
Here are my tmux bindings which I have been using daily for over a year. These are configured in iTerm in the Profiles->Keys section using Send Hex Codes.

  Cmd-shift-c: New window
  Cmd-shift-l: New pane to the right
  Cmd-shift-h: New pane to the left
  Cmd-shift-k: New pane above
  Cmd-shift-j: New pane below
  Cmd-l: Focus pane on right
  Cmd-h: Focus pane on left
  Cmd-k: Focus pane above
  Cmd-j: Focus pane below
  Cmd-1: Select first window
  Cmd-2: Select second window
  ...
  Option-h: Previous window
  Option-l: Next window
  Command-/: Enter copy mode
I have the same bindings in MacVim. The nice thing about using command is that it doesn't interfere with other cli apps like ctrl.

The following allows you to yank the tmux clipboard into the system clipboard: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

1 comments

Here's a good blog post describing how to use the "Send Hex Codes" for integrating tmux and iTerm: http://tangledhelix.com/blog/2012/04/28/iterm2-keymaps-for-t...