Closed blueyed closed 8 years ago
What about disabling the autocmd on the first execution?
augroup MySessionLoadPost
autocmd!
au SessionLoadPost * call SessionLoadPostSettings()
augroup END
function! SessionLoadPostSettings()
" my settings (...)
au! MySessionLoadPost
endfunction
@mMontu Good idea, thanks!
There is
SessionLoadPost
already, but it gets executed for each buffer/window.I would like to have a callback to adjust settings according to the loaded session, e.g.
viminfo
/shada
(Neovim), but dislike the overhead of it being called X times.