From b1e68f3d79f319da7e88668a3f9d428adde883e5 Mon Sep 17 00:00:00 2001
From: xiaoqiang han <97718268+xiaoqianghan@users.noreply.github.com>
Date: Sun, 26 Feb 2023 09:18:34 +0800
Subject: [PATCH] Update minimal-vimrc.vim

- The forward slash (/) is not necessary at the end of the directory path ~/.vim/files. It will work with or without the slash, but it's more common to omit it.
- We can add a command in the comment to ensure that the directories and files are created.
---
 static/minimal-vimrc.vim | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/static/minimal-vimrc.vim b/static/minimal-vimrc.vim
index 267504f..6cac147 100644
--- a/static/minimal-vimrc.vim
+++ b/static/minimal-vimrc.vim
@@ -52,11 +52,13 @@ endif
 
 " Put all temporary files under the same directory.
 " https://github.com/mhinz/vim-galore#temporary-files
+" To ensure that the following configurations work correctly, please execute the following command.
+" mkdir -p ~/.vim/files/{backup,swap,undo,info} && touch ~/.vim/files/info/viminfo
 set backup
 set backupdir   =$HOME/.vim/files/backup/
 set backupext   =-vimbackup
 set backupskip  =
-set directory   =$HOME/.vim/files/swap//
+set directory   =$HOME/.vim/files/swap/
 set updatecount =100
 set undofile
 set undodir     =$HOME/.vim/files/undo/