title: Vim E488: Trailing Characters in function
body: <p>I'm getting a trailing characters error for the 'for loop' in the following lines of code and I've no clue why.</p>
  
  <pre><code>function! s:HashID(str)  "{{{
      let l:hash_id = 0
      for i in split(a:str, '\zs')
          l:hash_id += float2nr(pow(2, stridx('abcdefg', i)))
      endfor
      return l:hash_id
  endfunction
  </code></pre>
  
  <p>What am I goofing up here?</p>