adapt vim mode string