vi-mode helpers.