Autoload improvements. #45

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

abudden commented Apr 17, 2012

Refactored autoload into two files to make proper use of autoload advantages.

Autoload is useful as it saves having to load too much code on startup.
However, calling the functions in the autoload/ file from the plugin/ file
results in the load-on-startup happening anyway, so it might as well be in
plugin/. This patch splits the autoload code into two files:

  • EasyMotion/Init.vim for the stuff that's loaded on startup and
  • EasyMotion/EasyMotion.vim for the stuff that's loaded on demand.
Refactored autoload into two files to make proper use of autoload adv…
…antages.

Autoload is useful as it saves having to load too much code on startup.
However, calling the functions in the autoload/ file from the plugin/ file
results in the load-on-startup happening anyway, so it might as well be in
plugin/.  This patch splits the autoload code into two files:

* EasyMotion/Init.vim for the stuff that's loaded on startup and
* EasyMotion/EasyMotion.vim for the stuff that's loaded on demand.
Owner

haya14busa commented Feb 1, 2014

I modified to use autoload correctly and pushed to main repo. Thanks!

@haya14busa haya14busa closed this Feb 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment