On Wed, Jan 03, 2007 at 07:05:09AM +0900, Guido wrote:
I just started using the SimpleFold  plugin with vim 6.4.
When I start vim I get the following error:
E518: Unknown option: completefunc=10_RCT_completion
This comes from the rcodetools plugin. completefunc was added in vim 7.0
isn’t thus available in 6.4. You can get rid of the error by commenting
corresponding line in ~/.vim/plugin/rcodetools.vim:
"execute “au Filetype ruby setlocal completefunc=” . s:sid .
My .vimrc contains
map f SimpleFold_Foldsearch
" fold when switching to that buffer
“au Filetype ruby call SimpleFold_Foldsearch(”")
Question 1: What do I have to do to make that annoying error go away?
For the time being just edit rcodetools.vim; I’ll add some code to
vim version and skip the completefunc for vim < 7.0 in the next release.
Question 2: If I uncomment the last line, the plugin should be used on
each freshly loaded ruby file. However vim complains, that the plugin is
unknown. How do I change that?
This should do (it works for me) if you’re using the f mapping.
" fold when loading Ruby files
au Filetype ruby execute "normal " . mapleader .“f”