Skip to content

Instantly share code, notes, and snippets.

@davidxia
Created November 23, 2021 16:28
Show Gist options
  • Save davidxia/2113a27dc71caa0f53a32933edac885a to your computer and use it in GitHub Desktop.
Save davidxia/2113a27dc71caa0f53a32933edac885a to your computer and use it in GitHub Desktop.
basic ~/.vimrc
set number
set nojoinspaces
set textwidth=100
au FileType gitcommit setlocal textwidth=72
" put .swp and backups outside of the directory to avoid triggering file watchers
set directory=$HOME/.vim/swapfiles//
set backupdir=$HOME/.vim/backups//
set undodir=$HOME/.vim/undos//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment