dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 6b83cf5a082ce18231369cbcfab3823a7cf62652
parent f2de4d760e00812c0ec4a42706fb7eae7807bbb5
Author: Chris Noxz <chris@noxz.tech>
Date:   Mon,  4 May 2020 11:09:11 +0200

[vim] fix dir creation part and make it POSIX

Diffstat:
Mvim/.config/vim/vimrc | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vim/.config/vim/vimrc b/vim/.config/vim/vimrc @@ -35,7 +35,10 @@ if empty("$XDG_DATA_HOME") let $XDG_DATA_HOME="$HOME/.local/share" endif -autocmd FileReadPre * :silent !mkdir -p $XDG_CACHE_HOME/vim/{swap,backup,undo} +autocmd BufNewFile,BufReadPre,FileReadPre * :silent !mkdir -p + \ $XDG_CACHE_HOME/vim/swap + \ $XDG_CACHE_HOME/vim/backup + \ $XDG_CACHE_HOME/vim/undo set directory=$XDG_CACHE_HOME/vim/swap,~/,/tmp set backupdir=$XDG_CACHE_HOME/vim/backup,~/,/tmp set undodir=$XDG_CACHE_HOME/vim/undo,~/,/tmp