Eliminate extraneous filetype switching.
Add type headers to the filetype section.
Add lua settings for vim.
Need to detect `win32unix` for cygwin.