Worked on tmux and vimrc

This commit is contained in:
Jim Shepich III 2026-10-13 10:09:42 -04:00
parent 0ca84b44d6
commit c544e55eba
2 changed files with 12 additions and 7 deletions

View File

@ -4,5 +4,10 @@ set -g prefix Home
# Keep Ctrl+B available as an alternative.
set -g prefix2 C-b
# Hook that runs :q! in all panes before a session is killed
# to avoid Vim swapfiles.
#set-hook -g
# Reload config.
bind M-r source-file ~/.tmux.conf

View File

@ -30,11 +30,10 @@ set encoding=utf8
filetype plugin indent on
" Make tabs as wide as two spaces
set tabstop=2
set tabstop=2 shiftwidth=0 softtabstop=2 noexpandtab
" Copy indentation from previous line
set smartindent
set autoindent
set autoindent nosmartindent nocindent indentexpr=
" Show the current mode
set showmode
@ -45,11 +44,12 @@ set title
" Show the (partial) command as it’s being typed
set showcmd
" Centralize backups, swapfiles and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
" Centralize backups, swapfiles and undo history;
" double slashes enable collision-avoidance.
set backupdir=~/.vim/backups//
set directory=~/.vim/swaps//
if exists("&undodir")
set undodir=~/.vim/undo
set undodir=~/.vim/undo//
endif
" :W sudo saves the file (useful for handling the permission-denied error)