Updated tmpl.tex

Added a comment at the stop specifying filetype for vim's convenience.
Improve LaTeX file recognition in vim
Added text wrapping in latex files

Reorganized the filetype-specific settings.