add filetype to workaround of endwise and smartinput