Compare commits

...

2 Commits

Author SHA1 Message Date
Connor Olding d07adaf621 fix ctrl+arrows in tmux+vim 2019-07-29 02:54:22 -07:00
Connor Olding 9f3d4ef0ef don't include a/b prefixes in diff command 2019-07-29 02:54:22 -07:00
3 changed files with 13 additions and 1 deletions

View File

@ -139,7 +139,7 @@ ll() {
# providing extra functionality {{{2
alias diff="git diff --color=auto --no-ext-diff --no-index"
alias diff="git diff --color=auto --no-ext-diff --no-index --no-prefix"
alias gc="git column --mode=dense --padding=2"
alias counts='find . | wc -l'
alias nocom='grep -Ev --line-buffered --color=never "^[[:space:]]*(//|#)"'

View File

@ -12,6 +12,9 @@ bind C-Space send-prefix
# this also makes hitting Enter exit copy-mode, which is a godsend
setw -g mode-keys vi
# need this for ctrl+arrows, etc.
set-option -g xterm-keys on
# remove delay on escape key
set -sg escape-time 0

View File

@ -178,6 +178,15 @@ set backspace=eol,start,indent " make backspace useful
" tab completion in command-line
if has('wildmenu') | set wildmenu | endif
if &term =~ '^tmux'
" https://unix.stackexchange.com/a/34723
" tmux will send xterm-style keys when xterm-keys is on
execute "set <xUp>=\e[1;*A"
execute "set <xDown>=\e[1;*B"
execute "set <xRight>=\e[1;*C"
execute "set <xLeft>=\e[1;*D"
endif
" easy indent/unindent
nn <tab> >>
nn <s-tab> <<