isobit / vim-caddyfile

Caddyfile syntax support for Vim
MIT License
46 stars 7 forks source link

Error on loading a second Caddyfile #3

Closed deanishe closed 6 years ago

deanishe commented 6 years ago

If I load more than one Caddyfile without quitting vim first, I get the following error:

Error detected while processing [...]/indent/caddyfile.vim:
  1 line   17:
38  E122: Function <SNR>99_sw already exists, add ! to replace it

I'm not much good at vimscript. Should the definition perhaps use func!?

deanishe commented 6 years ago

Thanks very much. Works perfectly now!

isobit commented 6 years ago

No problem, thanks for the report. I'm surprised I didn't run into it earlier!