Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .