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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.