add automatic file detection. and swapped out windows line-endings

added ftdetect file to make this work out of the box with plugin managers like pathogen or vundle.

also reformatted to unix fileformat, the plugin would not work for me with windows EOL characters. I believe unix formatting works on all platforms, but I have no way to test it.