I tried to use

:for num in [1-30]

today in my spacemacs evil mode. But it says Unknown command for

Are :for and such command an extension to Vi that is not available for Spacemacs Evil?

1 Answer 1


AFAIK, the for command evaluates in vimscript, which evil-mode does not support, because emacs already has its own language, that is elisp. So, instead of using :for, you would have to do it in the elisp way, like this:

:(cl-loop for i from 1 to 30 do (do-something i))

You'll have to learn a little bit of elisp, if you are still not familiarized with it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.