Add a perl ftplugin
Finally get history working properly