Browse Source

Revert to old tmux/vim bindings

master
Taylor Bockman 9 years ago
parent
commit
fc3bbb2f13
  1. 12
      dotfiles/tmux.conf
  2. 11
      dotfiles/zshrc

12
dotfiles/tmux.conf

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

11
dotfiles/zshrc

@ -2,7 +2,15 @@
export ZSH=~/.oh-my-zsh
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export VISUAL="nvim"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# Linux
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 ITERM_24BIT=1
export TERM=rxvt-256color
@ -19,7 +27,6 @@ export TERM=rxvt-256color
# export TERM=xterm-256color
#fi
alias vim='nvim'
alias emacs='emacs -nw'
alias irssi='TERM=screen-256color irssi'
alias scheme='rlwrap mit-scheme'

Loading…
Cancel
Save