Make vim code work (define the formatexpr function)

Make a few quick fixes to the Vim code to define the `formatexpr`.