# Terminal Setup — Tmux & Vim Config files for a minimal, productive tmux + vim setup. Designed for pairing with AI coding agents. ## Files - `tmux.conf` — Tmux config with Ctrl-A prefix, vim-style pane navigation, mouse support, and sane defaults - `vimrc` — Vim config with fzf fuzzy finder, onedark theme, lightline statusbar, space as leader key, and 2-space tabs ## What it sets up ### Tmux - Prefix rebound to `Ctrl-A` (easier than `Ctrl-B`) - `|` and `-` for splits (keeps current directory) - Vim-style `h/j/k/l` pane navigation - Mouse support enabled - Windows start at 1, not 0 - 10k line scrollback - TPM plugin manager with tmux-powerline ### Vim - Plugins via vim-plug: fzf, surround, commentary, repeat, lightline, highlighted-yank, markdown-preview - OneDark color scheme with true color - 2-space indentation, smart search, persistent undo - Space as leader key - `p` for fuzzy file search, `f` for ripgrep - `Ctrl-h/j/k/l` for split navigation - Auto-trim trailing whitespace on save ## Install ```bash # Backup existing configs [ -f ~/.tmux.conf ] && cp ~/.tmux.conf ~/.tmux.conf.bak [ -f ~/.vimrc ] && cp ~/.vimrc ~/.vimrc.bak # Download configs curl -fsSL https://clintonhalpin.com/dotfiles/tmux.conf.txt -o ~/.tmux.conf curl -fsSL https://clintonhalpin.com/dotfiles/vimrc.txt -o ~/.vimrc # Install TPM (tmux plugin manager) git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm 2>/dev/null || true # Install vim-plug curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim # Install vim plugins vim +PlugInstall +qall # Reload tmux config (if tmux is running) tmux source-file ~/.tmux.conf 2>/dev/null || true ```