For Vim to lint the current file in the background and show errors directly in the editor, you need to do these three steps:
1. Install ALE (async code checker with Language Server Protocol support).
2. Setup it:
3. You're beatiful!