mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Quick question: Location of let g:startify_disable_at_vimenter #457

Closed poetaman closed 3 years ago

poetaman commented 3 years ago

Am using vim-plug plugin manager, should I set let g:startify_disable_at_vimenter = 1 before or after loading Plug mhinz/vim-startify? Both yield similar visual result, my question is more rooted in performance... the few milliseconds that can be saved (it builds up in vimrc :D)

mhinz commented 3 years ago

Performance-wise it should make no difference at all! By the time any file from vim-startify is read, the vimrc was completely sourced already.

It doesn't matter where the Plug lines are, because these plugins are not read immediately. vim-plug merely adjusts the runtimepath (see :h 'rtp'), which makes the plugins part of the runtime that is sourced according to certain rules after vimrc was read (:h startup).

(Also check the sourcing order via :scriptnames.)

Personally I have all my Plug lines at the top of the vimrc and all options at the bottom. It's really about personal taste. :-)