alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
274 stars 39 forks source link

LoopOnFail and LoopProxy may remove autocmd set by other scripts #8

Closed pyx closed 12 years ago

pyx commented 12 years ago

Executing au! without a group name will remove all autocmd in current group, which may contain autocmds set by other scripts. For example, once I run :Pytest file<CR>, :e newfile.py will not trigger syntax highlighting, I have to run :syntax on or :syntax enable manually for each newly created buffer in the same vim session afterwards. This can be fixed by adding an autogroup.