Skip to content

Instantly share code, notes, and snippets.

@zegervdv
Created January 13, 2016 20:33
Show Gist options
  • Save zegervdv/d4a27a6ed2ffc5323764 to your computer and use it in GitHub Desktop.
Save zegervdv/d4a27a6ed2ffc5323764 to your computer and use it in GitHub Desktop.
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