update some tmux and vim config

This commit is contained in:
Marco Thomas
2022-10-11 17:00:41 +02:00
parent f6a5bad6ad
commit 4077c2b72a
3 changed files with 22 additions and 4 deletions

View File

@@ -19,7 +19,8 @@ bind-key -n M-l select-pane -R
# pane / window modifications
bind-key -n M-z resize-pane -Z
# use `set automatic-rename on` to reset
bind-key -n M-, command-prompt "rename-window '%%'"
bind-key -n M-, command-prompt -p "Rename window:" "rename-window '%%'"
bind-key -n M-< set automatic-rename on
# new windows
bind-key -n M-c new-window -c "#{pane_current_path}"
@@ -36,8 +37,13 @@ bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
# swap panes
bind-key -n 'M-{' swap-pane -D
bind-key -n 'M-}' swap-pane -U
bind-key -n 'M-[' swap-pane -D
bind-key -n 'M-]' swap-pane -U
# move panes to and from windows
bind-key -n 'M-t' command-prompt -p "Send pane to:" "join-pane -t :'%%'"
bind-key -n 'M-#' select-layout even-horizontal
bind-key -n 'M-$' select-layout even-vertical
# resize panes
bind-key -n 'M-Left' resize-pane -L
@@ -59,7 +65,7 @@ set -g base-index 1
setw -g pane-base-index 1
# styling
set -g status-position top
set -g status-position bottom
# using https://github.com/edkolev/tmuxline.vim
# open vim, `:TmuxLineSnapshot`, save to ~/.tmux.theme