Browse Source

Revert to old tmux/vim bindings

Taylor Bockman 9 years ago
parent
commit
0914c56f00
  1. 12
      dotfiles/tmux.conf
  2. 9
      dotfiles/zshrc

12
dotfiles/tmux.conf

@ -51,17 +51,17 @@ bind C-Space copy-mode
# Rebinds to be like neotree # Rebinds to be like neotree
unbind % unbind %
bind | split-window -h bind i split-window -h
bind - split-window -v bind s split-window -v
# Smart pane switching with awareness of vim splits # Smart pane switching with awareness of vim splits
# This is the tmux side of the vim-tmux-navigator plugin # This is the tmux side of the vim-tmux-navigator plugin
# is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'" # is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'"
bind -n M-Left select-pane -L bind k selectp -U # switch to panel Up
bind -n M-Right select-pane -R bind j selectp -D # switch to panel Down
bind -n M-Up select-pane -U bind h selectp -L # switch to panel Left
bind -n M-Down select-pane -D bind l selectp -R # switch to panel Right
# Vim keybinds so copy mode behaves more like vim # Vim keybinds so copy mode behaves more like vim
bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'v' begin-selection

9
dotfiles/zshrc

@ -2,7 +2,15 @@
export ZSH=~/.oh-my-zsh export ZSH=~/.oh-my-zsh
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# Linux
export VISUAL="nvim" export VISUAL="nvim"
alias vim="$VISUAL"
elif [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
export VISUAL="/usr/local/bin/nvim"
alias vim="$VISUAL"
fi
export EDITOR="$VISUAL" export EDITOR="$VISUAL"
export ITERM_24BIT=1 export ITERM_24BIT=1
export TERM=rxvt-256color export TERM=rxvt-256color
@ -19,7 +27,6 @@ export TERM=rxvt-256color
# export TERM=xterm-256color # export TERM=xterm-256color
#fi #fi
alias vim='nvim'
alias emacs='emacs -nw' alias emacs='emacs -nw'
alias irssi='TERM=screen-256color irssi' alias irssi='TERM=screen-256color irssi'
alias scheme='rlwrap mit-scheme' alias scheme='rlwrap mit-scheme'

Loading…
Cancel
Save