I benchmarked my neovim’s startup time with nvim --startuptime vim.log
. Unfortunately, it is much slower than it used to be a few months back when I last benchmarked it.
I noticed that some builtin plugins are taking a lot of time to load, and one of them is being sourced several times:
079.175 000.106 000.106: sourcing /tmp/.mount_nvim5C8SgD/usr/share/nvim/runtime/plugin/tohtml.vim
079.293 000.036 000.036: sourcing /tmp/.mount_nvim5C8SgD/usr/share/nvim/runtime/plugin/tutor.vim
079.534 000.204 000.204: sourcing /tmp/.mount_nvim5C8SgD/usr/share/nvim/runtime/plugin/zipPlugin.vim
136.101 000.194 000.194: sourcing /tmp/.mount_nvim5C8SgD/usr/share/nvim/runtime/syntax/syncolor.vim
138.009 000.198 000.198: sourcing /tmp/.mount_nvim5C8SgD/usr/share/nvim/runtime/syntax/syncolor.vim
139.750 000.179 000.179: sourcing /tmp/.mount_nvim5C8SgD/usr/share/nvim/runtime/syntax/syncolor.vim
How can I disable builtin plugins? For example, I don’t want to source tutor.vim or tohtml.vim since I don’t think I need them at all. I also want to make sure that syncolor.vim is sourced once.