I\'d like to get the current filetype as a variable in vimscript.
I\'m making a function that grabs the current filetype and edits another file of corresponding filety
File type and file suffix are not necessarily the same thing. For example, if you are editing a .txt file, let zft = &ft sets zft to "text". let zfs = fnamemodify(bufname("%"), ":e") sets zfs to "txt".