Move function to autoload.

To improve vim's boot process move functions to autoload