How to ignore a specific error (E303 in this case) globally?

(don't display it in the console)

I wish not to use try...catch if possible.

  • 2
    other than using :sil! and ignoring all errors, not possible. – Christian Brabandt Sep 23 '19 at 13:31
  • 1
    Handling (in this case ignoring) is what try/catch is for... – D. Ben Knoble Sep 23 '19 at 14:53
  • 1
    For this special case, see :help E303. You might be able to prevent this error with a proper setting of the directory option. – Ralf Sep 23 '19 at 19:27
  • I have set it. If I use noswap at some point when loading a saved session at least, it throws this error. – eyal karni Sep 24 '19 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.