This script will display the errors in the current quickfix and/or location list as virtual text in the buffer.
Virtual text can be aligned after, right, below or above the line containing the error.
NOTE: For a full plugin, see vim-qf-diagnostics.