Avoid shadowing 'dir' in init.vim

This commit is contained in:
Danielle McLean 2022-07-02 17:01:58 +10:00
parent 211ee2eb40
commit b4425ed006
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -69,8 +69,8 @@ else
set number
endif
for dir in ['backup', 'swap', 'undo']
EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir)
for dir_name in ['backup', 'swap', 'undo']
EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir_name)
endfor
set backupdir=.,$XDG_STATE_HOME/vim/backup