On 20/11/09 07:46, pansz wrote:
>
> Kana Natsuno 写道:
>>
>> autoload/framework.vim:
>> function! framework#get_parameter_x()
>> return s:parameter_x
>> endfunction
>>
>> plugin/engine_x.vim:
>> call framework#set_parameter_x('...')
>> call framework#_call_internal_stuff()
>>
>> Did you consider about this way? If so, why do you reject it?
>
> This does work, But it considered tedious.
>
> Consider: if all you want is to split an already too long script into
> two, how much "s:" do you need to change? isn't there some similiar
> feature like "include foobar.vim"? i.e. source some script completely
> inside my own script-local namespace?
No, there isn't. ":source foobar.vim" is considered adequate for most
purposes, and when it isn't, ":call foobar#somefunc()" comes to the rescue.
Changing the "s:"-es is not a problem with
:%s/s:\|<SID>/foobar#/gc
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
220. Your wife asks for sex and you tell her where to find you on IRC.
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php