Skip to content

Instantly share code, notes, and snippets.

@sirhopcount
Last active April 25, 2016 14:10
Show Gist options
  • Save sirhopcount/ae8b3b7e1848e748bcf6d6b21f9ba695 to your computer and use it in GitHub Desktop.
Save sirhopcount/ae8b3b7e1848e748bcf6d6b21f9ba695 to your computer and use it in GitHub Desktop.
Make vim and tmux place play nic
# Needed for tmux and vim to play nice
if [ "$TERM" == "screen-256color" ]; then
bind '"\e[1;5C": forward-word'
bind '"\e[1;5D": backward-word'
fi
# Needed for tmux and vim to play nice
set-window-option -g xterm-keys on
" Needed for tmux and vim to play nice
map <esc>[1;5D <C-Left>
map <esc>[1;5C <C-Right>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment