taskpaper.vim icon indicating copy to clipboard operation
taskpaper.vim copied to clipboard

Taskpaper ftdetect somehow screws up python file detection

Open rdeits opened this issue 13 years ago • 2 comments

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.

rdeits avatar Nov 17 '11 19:11 rdeits

Confirmed, but I thought the augroup plugin / augroup END structure was fairly standard...

davidoc avatar Feb 18 '12 13:02 davidoc

according to http://learnvimscriptthehardway.stevelosh.com/chapters/44.html it is not needed.

linux478 avatar Oct 22 '17 20:10 linux478