Skip to content

Instantly share code, notes, and snippets.

@ryanmoralesaz
Created December 25, 2025 03:07
Show Gist options
  • Select an option

  • Save ryanmoralesaz/aaf0bfb8eec60f1a7654aba52b0ba7a2 to your computer and use it in GitHub Desktop.

Select an option

Save ryanmoralesaz/aaf0bfb8eec60f1a7654aba52b0ba7a2 to your computer and use it in GitHub Desktop.
tmux config for osc 52 copying
# Vim-style pane navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Vim-style pane resizing (-r allows repeat without prefix)
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Vim-style copy mode
setw -g mode-keys vi
# More intuitive split commands
bind v split-window -h
bind s split-window -v
# Start window/pane numbering at 1 (easier to reach)
set -g base-index 1
setw -g pane-base-index 1
# Renumber windows when one is closed
set -g renumber-windows on
# Enable mouse support (useful for resizing)
set -g mouse on
# Increase scrollback buffer
set -g history-limit 10000
# Fix colors for Neovim
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Faster command sequences (reduce escape time)
set -s escape-time 0
# Status bar styling (optional)
set -g status-style bg=default,fg=white
set -g status-left-length 40
set -g status-right "%H:%M %d-%b-%y"
set -g set-clipboard on
set -g allow-passthrough on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment