Hi list.
Place these scripts in ~/.vim
- autoload/mylib.vim
- autoload/mylib2.vim
--- autoload/mylib.vim ---
function! mylib#func()
echo 'mylib#func()'
echo exists('*mylib2#func')
endfunction
--- autoload/mylib2.vim ---
function! mylib2#func()
echo 'mylib2#func()'
endfunction
Run vim and type this.
:call mylib#func() " => 0
And, exists() also returns bogus value at plugin/mylib.vim like this.
--- plugin/mylib.vim ---
function! MylibFunc()
echo 'MylibFunc()'
echo exists('*mylib2#func')
endfunction
:call MylibFunc()
will also print "0".
--
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