Created
January 13, 2016 20:33
-
-
Save zegervdv/d4a27a6ed2ffc5323764 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! NagelFarEchoError() | |
let a:qf_files = getqflist() | |
if (len(a:qf_files) > 0) | |
let a:current_position = line('.') | |
let a:message = filter(getqflist(), 'v:val.lnum == a:current_position') | |
if (len(a:message) > 0) | |
echo get(a:message, 0).text | |
endif | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment