Hi Guys,

Working with vim 7 on win xp here. Trying to add this function to my vimrc

"Regex to find bad indexitem entries and replace them
function FixJHIndex()
  silent! %s/\(<indexitem text="\a*.*">\)\_s*<\/indexitem>/\1/g
endfunction

to find stuff like this

   <indexitem text="Conversions between pixel types">
       </indexitem>

The regular expression works if I call it directly, but when I write

:function FixJHIndex

it just echoes the function definition. What am I missing?

Thanks
Sam

Reply via email to