I am trying to catch an error (E490) in Vim like this:
:try | foldopen! | catch | | endtry
Still, when executing this, Vim shows the error:
Error detected while processing :
E490: No fold found
I would like to open all folds if any are present.
Any ideas?