From: Christian Brabandt Date: Thu, 19 Feb 2026 11:24:53 +0000 (+0100) Subject: runtime(xdg): Move viminfofile storage to state dir X-Git-Tag: v9.2.0026~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e9e7cb8e0959441215fbddbeeed6dbd9c6e11b9;p=thirdparty%2Fvim.git runtime(xdg): Move viminfofile storage to state dir fixes: #19456 Signed-off-by: Christian Brabandt --- diff --git a/runtime/xdg.vim b/runtime/xdg.vim index 1dfeccdb90..cc5ae9fb4f 100644 --- a/runtime/xdg.vim +++ b/runtime/xdg.vim @@ -21,9 +21,6 @@ if isdirectory(s:config .. '/vim') exe $"set packpath+={s:data}/vim/after" endif - " Use Data for the viminfo file - let &viminfofile = s:mkvimdir(s:data .. '/vim') .. '/viminfo' - " These options are not set by default because they change the behavior of " where files are saved. Uncomment them if you want to fully move all " transient/persistent files to XDG directories. @@ -37,6 +34,7 @@ if isdirectory(s:config .. '/vim') " call s:mkvimdir(s:data .. '/vim/spell') " Transient State: + let &viminfofile = s:mkvimdir(s:state .. '/vim') .. '/viminfo' " let &directory = s:mkvimdir(s:state .. '/vim/swap') .. '//' " let &backupdir = s:mkvimdir(s:state .. '/vim/backup') .. '//'