Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

to jump in vim, I use

 nnoremap <c-j> /<++><cr>c/+>/e<cr>

but, when the <++> are in a close fold, the <c-j> delete all fold, for this I change to

 nnoremap <c-j> /<++><cr>zOc/+>/e<cr>

but, when the <++> are not are in a fold I get

 E490: No fold found
share|improve this question

1 Answer 1

up vote 2 down vote accepted

Use zv instead of zO. That will work without an error message whether in a fold or not.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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