Switch ftplugin files to use local variables

Signed-off-by: Michael Barton <mail@michaelbarton.me.uk>