thanks for all guys.

I figure out it by the following method.

add a before and before/plugin dir which will put the before-script files in my 
plugin dir . 
and add a autoload and autoload/set_order.vim in my plugin dir.
and add a following function
function! set_order#set_order()
    let l:rpt = &runtimepath
    let &runtimepath = "myplugin-path/before," . l:rpt
endfunction

and modify my vimrc with

set runtimepath+=myplugin-path
call set_order#set_order()

and it seems works now. Even thought not clear whether would cause other 
progblem.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui