Cleaning up filetype plugins. Better testing in ruby