Set a shared vim undo directory

And be sure to create it during installation
This commit is contained in:
Josh Sherman 2024-06-25 20:46:37 -05:00
parent f55283485b
commit db9d9628e5
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,8 @@ if [[ `uname` == Darwin ]]; then
stow macos
fi
mkdir -p ~/.local/share/vim/undo/
cd "$HOME" || exit
rm -f "${HOME}/.zcompdump*"

View file

@ -46,6 +46,7 @@ set shiftwidth=2
set smartindent
set softtabstop=2
set tabstop=2
set undodir=~/.local/share/vim/undo/
set undofile
" Filetype-specific settings