diff --git a/configs/.tmux.conf b/configs/.tmux.conf index 45ef0596e..4e4099fef 100644 --- a/configs/.tmux.conf +++ b/configs/.tmux.conf @@ -1,15 +1,18 @@ set -g default-terminal "screen-256color" + bind-key -r -T prefix k select-pane -U bind-key -r -T prefix j select-pane -D bind-key -r -T prefix h select-pane -L bind-key -r -T prefix l select-pane -R + bind-key -r -T prefix C-k resize-p -U 2 bind-key -r -T prefix C-j resize-p -D 2 bind-key -r -T prefix C-h resize-p -L 2 bind-key -r -T prefix C-l resize-p -R 2 + bind % split-window -c "#{pane_current_path}" bind '"' split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" diff --git a/configs/.zsh_profile b/configs/.zsh_profile index 26da66d00..89eb0b738 100644 --- a/configs/.zsh_profile +++ b/configs/.zsh_profile @@ -39,3 +39,7 @@ bindkey -M viins 'jj' vi-cmd-mode # brew install zsh-syntax-highlighting source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +# Regain control of CLI +" remap lwi +inoremap lWi + +" TODO: debug why repetition is needed +inoremap bi +inoremap Bi + + +" set -o emacs line-editor defaults +inoremap I +inoremap A + + +" keybinds to close a buffer +inoremap :q +nnoremap :q +nnoremap :q + + " vs and sp keybinding nnoremap vs :vs nnoremap vv :vs @@ -217,10 +238,14 @@ set number set tabstop=2 set expandtab set shiftwidth=2 -colorscheme elflord +colorscheme monokai set t_Co=255 +" Remove all characters until the end of the line +inoremap lC + + " Ensure that
is "," character let mapleader = "," @@ -273,11 +298,6 @@ nnoremap H ^ nnoremap L $ -" set -o emacs line-editor defaults -inoremap I -inoremap A - - " trim trailing whitespace on save autocmd BufWritePre *.{js,py,tpl,html} :%s/\s\+$//e