[vim] simplify selectBlock function