christoomey/vim-tmux-navigator — pull request #1 by derekprior (2013-06-08 02:40:01+00:00)
Title: Provide consistent fallback mappings

If I fire up vim outside of tmux, I want consistent window-movement mappings.

In general, I don't want plugins automatically mapping things for me, but this is a happy medium for now.

Future refactor: expose functions for MoveUp, MoveRight, MoveDown, MoveLeft, MovePrevious and leave it up to the user to map those functions. The functions themselves would be smart enough to shell out when in tmux, or pass through to the traditional movement otherwise. This leaves the mapping entirely controlled by the user who doesn't have to worry about checking for tmux either.