Hi,

[EMAIL PROTECTED] wrote:
> I notice that a script I sometimes use to automatically check in files
> with RCS when I save a file gives error under the new Vim 7.x but did
> not under Vim 6.4.
> 
> Here is the script:
> 
> ==== Begin script autoci
> if version >= 600
>   if has("autocmd") 
>     syntax enable
>     function! s:RCSCheckIn()
>       cd %:p:h
>       exe '!ci -l -m"'.strftime("%Y %b %d %X").'" -t- %:t'
>       cd -
>     endfuction

this should be "endfunction".

>     function! s:HiStatusLines()
>       hi StatusLine   ctermfg=0 ctermbg=1 guifg=Black guibg=Red term=bold
>       hi StatusLineNC ctermfg=0 ctermbg=1 guifg=Black guibg=DarkGreen
>     endfuction
      ^^^^^^^^^^

This should be "endfunction", too.

>     augroup autoci
>       au!
>       autocmd BufWrite * exe 'silent call <sid>RCSCheckIn()' 
>       autocmd FileType * exe 'silent call <sid>HiStatusLines()' 
>     augroup END
>   endif " has("autocmd")
> endif
> ==== E n d script autoci
> 
> When I source this script under Vim 7.0 I receive the following errors:
> 
> line   20:
> E126: Missing :endfunction
> line   21:
> E171: Missing :endif

Regards,
Jürgen

-- 
Jürgen Krämer                              Softwareentwicklung
HABEL GmbH & Co. KG                        mailto:[EMAIL PROTECTED]
Hinteres Öschle 2                          Tel: +49 / 74 61 / 93 53 - 15
78604 Rietheim-Weilheim                    Fax: +49 / 74 61 / 93 53 - 99

Reply via email to