Skip to content

Instantly share code, notes, and snippets.

@tbnorth
Last active December 5, 2021 16:06
Show Gist options
  • Save tbnorth/71cb012d159e993dadd20d265e62bfdd to your computer and use it in GitHub Desktop.
Save tbnorth/71cb012d159e993dadd20d265e62bfdd to your computer and use it in GitHub Desktop.
With gnu screen and vim turn terminal content into quickfix list and open in running vim (Python Traceback)
screen -X hardcopy $HOME/.tmp.err
sed 's/^ File "//; s/", line /:/; s/,.*/: -/' < $HOME/.tmp.err > $HOME/.tmp.cop
vim --remote-send '<Esc>:cexpr system("cat $HOME/.tmp.cop") | copen<CR>G'
screen -X select "vim --servername VIM"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment