From 0ca84b44d6d01808c3afde2a1bdd6d3430ec0fe4 Mon Sep 17 00:00:00 2001 From: Jim Shepich III Date: Fri, 9 Oct 2026 10:02:45 -0400 Subject: [PATCH] Working on vimrc and tmux.conf --- .tmux.conf | 8 ++++++++ .vimrc | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .tmux.conf create mode 100644 .vimrc diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..b539856 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,8 @@ +# Use Home (mapped to Menu key on Babygram) as the primary prefix. +set -g prefix Home + +# Keep Ctrl+B available as an alternative. +set -g prefix2 C-b + +# Reload config. +bind M-r source-file ~/.tmux.conf diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..f5668d4 --- /dev/null +++ b/.vimrc @@ -0,0 +1,56 @@ +set nocompatible + +" Enable line numbering +set number + +" Configure backspace so it acts as it should act +set backspace=eol,start,indent + +" Allow arrow keys to wrap onto the previous/next line. +set whichwrap+=<,>,h,l + +" Enable syntax highlighting if available +if has("syntax") + syntax on +endif + +" Highlight search results +set hlsearch + +" Show “invisible” characters +set list lcs=tab:→\ ,space:·,nbsp:␣ +"eol:¶ +highlight SpecialKey ctermfg=darkgray +highlight Nontext ctermfg=darkgray + +" Set utf8 as standard encoding +set encoding=utf8 + +"filetype detection, language-specific plugins, and automatic indentation +filetype plugin indent on + +" Make tabs as wide as two spaces +set tabstop=2 + +" Copy indentation from previous line +set smartindent +set autoindent + +" Show the current mode +set showmode + +" Show the filename in the window titlebar +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 +if exists("&undodir") + set undodir=~/.vim/undo +endif + +" :W sudo saves the file (useful for handling the permission-denied error) +command! W execute 'w !sudo tee % > /dev/null' edit!