From 4353d3a459a154b009e1c972f57b7e633b6d8597 Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 20 Nov 2024 09:55:45 +0100 Subject: [PATCH] dont halt and catch fire without the user 'anon' --- vim/.vimrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index ee1ec57..01a2d26 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -45,11 +45,17 @@ " ### EASSE_OF_USE ### " -------------------- set bs=2 - set undodir=/home/anon/stow/.cache/ - set undofile - set directory=/home/anon/stow/.cache/ - set backupdir=/home/anon/stow/.cache/ + set undofile + if isdirectory("/home/anon/") + set undodir=/home/anon/stow/.cache/ + set directory=/home/anon/stow/.cache/ + set backupdir=/home/anon/stow/.cache/ + else + set undodir=/tmp/ + set directory=/tmp/ + set backupdir=/tmp/ + endif set autoindent