vim logic