From 163c5c9f5cf2c168f7d4feece55d06895f431411 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 27 Jul 2024 18:06:54 -0300 Subject: Fix: sessions: try sessionoptions-=buffers --- vimrc.dot.link | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc.dot.link b/vimrc.dot.link index 78d7376..ed7b829 100644 --- a/vimrc.dot.link +++ b/vimrc.dot.link @@ -417,6 +417,10 @@ let g:session_autosave='yes' let g:session_autoload='no' let g:session_directory='~/.local/share/vim/sessions' +" Don't save hidden and unloaded buffers in sessions. +" https://github.com/xolox/vim-session?tab=readme-ov-file#options +set sessionoptions-=buffers + " Autosave " See https://github.com/vim-scripts/vim-auto-save "let g:auto_save = 1 -- cgit v1.2.3