davidoc/taskpaper.vim — Issue #19: Taskpaper ftdetect somehow screws up python file detection
Author: rdeits
Created: 2011-11-17 19:42:21+00:00
State: open

This is a weird one...

Somehow ftdetect/taskpaper.vim is causing vim to set the filetype of a .py file which contains the # character at the start of a line to conf instead of python.

To reproduce:
Create an empty file called foo.py
Open it in vim
Do set ft? to check the filetype, verify that it shows up as "python"
Enter a single # into the file, then close and re-open it
Check the filetype: it's now "conf"
Delete the # and re-open: it's now "python" again.

Workaround:
Comment out the "augroup taskpaper" and "augroup END" lines in ftdetect/taskpaper.vim. This seems to completely fix the problem.

Any thoughts? This may just be taskpaper interacting badly with something else I've installed.