patched vimscript to use file extension rather than buftype