If I run the command
CoverageShow coverage.py when I have a python file open and a
.coverage report in my directory it does a nice job of showing me which lines are included in my testing.
I would like to run this every time I open a file that meets to requirements, so i thought I could put something like
if filereadable(".coverage") " should somehow check the filetype here too CoverageShow coverage.py endif
but when I try to open a file with this in my
.vimrc I get
E492: Not an editor command: CoverageShow coverage.py which confuses me, because
CoverageShow coverage.py certainly works when vim is open, but then I don't really know what I'm doing.
Where am I going wrong here?