From dd36f9808546af01f4f818b3b8d07917c54916d5 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Wed, 21 Sep 2022 11:56:43 -0500 Subject: [PATCH] new tmux prefix --- tmux/.tmux.conf | 13 +++++++++++++ vim/.vim/prefs/leader.vim | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 2f013d5..f5db732 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,7 +1,14 @@ unbind C-b + set -g prefix C-a bind C-a send-prefix +set -g prefix ` +bind-key ` send-prefix + +bind-key C-a set-option -g prefix C-a +bind-key C-b set-option -g prefix ` + set-option -g history-limit 100000000 set-option -g status-position bottom @@ -80,6 +87,12 @@ bind -n S-Right next-window bind-key -n C-S-Left swap-window -t -1 bind-key -n C-S-Right swap-window -t +1 +# loop through current window's panes while zoomed +bind -r "'" select-pane -t .+1 \; resize-pane -Z +bind -r ";" select-pane -t .-1 \; resize-pane -Z + +bind-key C-a set-option -g prefix C-a + # No delay for escape key press set -sg escape-time 0 diff --git a/vim/.vim/prefs/leader.vim b/vim/.vim/prefs/leader.vim index 2740981..f96a386 100644 --- a/vim/.vim/prefs/leader.vim +++ b/vim/.vim/prefs/leader.vim @@ -134,3 +134,7 @@ vnoremap c$ :call nerdcommenter#Comment(0,"ToEOL") nmap yf :let @" = expand("%") nmap ut :UndotreeToggle nmap e :e %% + +" replace currently selected text with default register +" without yanking it +vnoremap p "_dP