Respect XDG for vim info file

This commit is contained in:
ItsDrike 2021-07-14 15:04:03 +02:00
parent ab51821a81
commit e0f6272f8c
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -52,6 +52,9 @@ set scrolloff=5 " Keep 5 lines horizontal scrolloff
set sidescrolloff=5 " Keep 5 characters vertical scrolloff set sidescrolloff=5 " Keep 5 characters vertical scrolloff
"set termguicolors " Use true colors (256) (May cause issues on TTY) "set termguicolors " Use true colors (256) (May cause issues on TTY)
" Move ~/.viminfo to XDG_CACHE_HOME
"set viminfofile=$XDG_CACHE_HOME/vim/viminfo
" Disable automatic commenting on newline " Disable automatic commenting on newline
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o