From e395b46a4be6722bf85d1bdc7dad3cf30903da08 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 16 Feb 2017 15:06:10 -0600 Subject: [PATCH] Attempt to create vim tmp and undo folders at start --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vimrc b/.vimrc index e4d0fef..61a9855 100644 --- a/.vimrc +++ b/.vimrc @@ -24,6 +24,8 @@ set backspace=indent,eol,start if has("vms") set nobackup " do not keep a backup file, use versions instead else + " Attempt to create ~/.vim/tmp and ~/.vim/undo + silent !mkdir -p ~/.vim/{tmp,undo} > /dev/null 2>&1 set dir=~/.vim/tmp " Set the swapfile location elsewhere to reduce breadcrumbs. set backup " keep a backup file (restore to previous version) set backupdir=~/.vim/tmp " keep backup (.swp) files in a specific directory instead of the same dir as the file being edited