fix vimlint error:

  remove unused variables
  fix syntax errors