Make ftplugin utilities more flexible