Luc Hermitte wrote:
> Hello,
> 
> "Patrick Gen-Paul" <[email protected]> wrote:
> 
>> I was wondering what the recommended setup is for user-defined
>> functions.
> 
> As I have many functions for different purposes, I always put them outside
 > of my .vimrc, which is already big enough without them.

> This way, I have a solution that scales, which is easy to maintain and 
 > redistribute.

> Now in order to speed-up vim start-up time, I put my (new [1]) functions, 
 > and only the functions, in autoload plugins.


> To avoid name clashes with others scripts, I put them in {rtp}/autoload/lh 
> (as in _L_uc _H_ermitte).

> Thus, I have general purpose functions for handling Lists, pathnames, etc, 
> plugin related functions, and ftplugin related functions all in autoload 
> plugins.
> 
> 
> [1] This feature appeared in vim 7, and I haven't "upgraded" all my 
> (ft-)plugins yet.
> 
> HTH,

Yes, it does help. I've been reading the autoload help and this looks 
like something worth investigating.

Thanks,

Gen-Paul.
        

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to