Re: Error on start-up
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2005-03-26 15:11:24
|
On Sat, 2005-03-26 at 14:05 +0000, Paul White wrote: > Hello, > > A few weeks ago I installed the latest Cream release > alongside my existing Vim 6.3 and all was well. For > reasons not relevant here I uninstalled Cream and > re-installed it a few days later. By that time I had > patched Vim 6.3 with all available patches. The > following error was displayed on start-up: > > Error detected while processing function > Cream_menu_settings_filetypes...Cream_vim_syntax_list: > line5: > E33: No previous substitute regular expression [...] >From the command line (Ctrl+O) what does :echo $VIMRUNTIME produce? I'm guessing you have a tilde ("~") in your value of $VIMRUNTIME which is being misinterpreted as a pattern in a substitution. If so, this is easily fixed. Just replace your version of this function in cream-lib.vim with the following: ----------------------------------------------------------- function! Cream_vim_syntax_list() " returns alphabetized list of syntax/*.vim, separated by "\n" let myrt = substitute($VIMRUNTIME, '\~', '\\~', 'g') let myrt = substitute(myrt, "\\", "/", "g") let myfiles = glob(myrt . "/syntax/*.vim") let myfiles = substitute(myfiles, myrt.'/syntax/', "", "g") let myfiles = substitute(myfiles, '\.vim', "", "g") return myfiles endfunction ----------------------------------------------------------- Does that work? -- Steve Hall [ digitect mindspring com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |