Mercurial > dotfiles
diff .chezmoitemplates/config.vim @ 648:c5ed13440614
Set and optionally create backup and undo dirs
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 02 Sep 2022 07:37:49 +0200 |
parents | a2a5862a3bd3 |
children | 0bea9fd463b5 |
line wrap: on
line diff
--- a/.chezmoitemplates/config.vim Thu Sep 01 15:59:47 2022 +0200 +++ b/.chezmoitemplates/config.vim Fri Sep 02 07:37:49 2022 +0200 @@ -4,25 +4,6 @@ let s:windows = has('win32') -" General Settings and options - -if !s:windows - if !isdirectory(expand(&backupdir)) - call mkdir(expand(&backupdir), "p") - endif - if !isdirectory(expand(&directory)) - call mkdir(expand(&directory), "p") - endif -end - -if v:version >= 703 - if !isdirectory(expand(&undodir)) - call mkdir(expand(&undodir), "p") - endif -endif - -" - " Mappings