Last active
December 5, 2021 16:06
-
-
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)
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
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