taskpaper.vim
taskpaper.vim copied to clipboard
Taskpaper ftdetect somehow screws up python file detection
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.
Confirmed, but I thought the augroup plugin / augroup END structure was fairly standard...
according to http://learnvimscriptthehardway.stevelosh.com/chapters/44.html it is not needed.