vim-autosource icon indicating copy to clipboard operation
vim-autosource copied to clipboard

Create option to only load vim confs once per session

Open jenterkin opened this issue 4 years ago • 2 comments

g:autosource_load_once_per_session

should default to 0

when set to 1 a given vim conf should only be loaded once per session

jenterkin avatar May 28 '21 00:05 jenterkin

Should this be limited to autocmd only, or also apply to :AutoSource?

zeertzjq avatar Jun 27 '21 01:06 zeertzjq

Good question. I don't think it should apply to :AutoSource since if you're running that command you probably want the conf to be sourced :p

I should have included this in the description, but the motivation here is to not source the same files over and over when moving around since you could have some weird side-effects depending on how you write your confs.

jenterkin avatar Jun 27 '21 01:06 jenterkin