Allow vim quickfix to jump to Python error messages

Add this to vimrc. If there is a date string or something, it may be called ErrorFormat, so limit it only when the python file is executed by autocmd.

augroup ErrorFormat
    autocmd BufNewFile,BufRead *.py
        \ set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
augroup END

Recommended Posts

Allow vim quickfix to jump to Python error messages
Post to vim → Python → Slack
[Python] Understand the content of error messages
Python error messages are specific and easy to understand "ga" (... AAA yyy BBB)
Send messages to Skype and Chatwork in Python
To write to Error Repoting in Python on GAE
Error when trying to install psycopg2 in Python
Homebrew Vim doesn't start with Python 3.8 error Note
Updated to Python 2.7.9
Python Error Handling
"Backport" to python 2
POST messages from python to Slack via incoming webhook
Create a plugin to run Python Doctest in Vim (2)
Error due to conflict between python when using gurobi
Create a plugin to run Python Doctest in Vim (1)
[Python] How to deal with pandas read_html read error
For those who want to write Python with vim
Python error messages are specific and easy to understand "ga" (before that, a colon (:) and a semicolon (;))