diff --git a/tmux.conf b/tmux.conf index 87a4dc7..e92384d 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,5 +1,6 @@ # https://gist.github.com/spicycode/1229612 +set -g default-terminal "screen-256color" set -g base-index 1 set-window-option -g automatic-rename off @@ -8,6 +9,7 @@ set-option -g set-titles on set -g status-style 'fg=white, bg=colour8' set -g window-status-current-style 'fg=black, bg=green' set -g status-right '#[fg=black, bg=colour2] #(cut -d " " -f 1-3 /proc/loadavg) #[default] #[fg=white, bg=colour238] %H:%M #[default]' +set -g status-justify centre set-window-option -g mode-keys vi set -g status-keys vi diff --git a/vimrc b/vimrc index a916782..cc54002 100644 --- a/vimrc +++ b/vimrc @@ -51,7 +51,7 @@ set ttymouse=sgr set mouse=a set mousemodel=popup_setpos set lazyredraw -set completeopt=menu,menuone,popup,noselect,noinsert +set completeopt=menu,menuone,popup,longest set timeoutlen=600 set ballooneval set balloonevalterm @@ -75,8 +75,6 @@ augroup AutoSaveFolds augroup end " Key mappings: -nnoremap j gj -nnoremap k gk nmap ,/ :nohlsearch map map @@ -85,8 +83,13 @@ map map :tabnew " Select just-pasted text: nnoremap 0 `[v`] -nnoremap Q @@ - +map m :marks +map R :registers +map v :vsplit +map h :splitfile browser +map ! :only +" ctrl-c to unload a buffer +nnoremap :bp\|bd # function! ToggleQuickFix() if empty(filter(getwininfo(), 'v:val.quickfix')) @@ -119,11 +122,6 @@ map T :CommandTFlush map r :CommandTMRU map H :CommandTHelp map c :CommandTCommand -map m :marks -map R :registers -map v :vsplit -map h :splitfile browser -map ! :only let g:CommandTFileScanner="git" let g:CommandTGitScanSubmodules=1 let g:CommandTGitIncludeUntracked=1 diff --git a/zshrc b/zshrc index de96735..a14b687 100644 --- a/zshrc +++ b/zshrc @@ -129,6 +129,7 @@ git config --global alias.br branch alias sysc="systemctl" alias hib="sudo systemctl hibernate" alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml" +# TODO add wg # recursive grep with line numbers and colour, ignoring binary files: alias gnr="grep -nR -I --color"