I’m trying to write a function that acts on any filetype (thus is not a particular ftplugin), that has divergent behavior based upon what the filetype is. e.g.
if (filetype=='objc')
"do something
elseif (filetype='cpp')
"do something else
endif
I read through the filetype docs, but nothing seems to reference this. Advice?
Try accessing the option value: