[vim] Add multi-line support to testEdit()