Vim does recognize filetype smartly according to the name of the file and the modeline.
However it cannot deal with this case: I have a file without any special special
somefile, which is a soft link to a c++ source
somefile.cpp. Vim seems to only look up the name of
somefile and think
it is a ordinary text file.
So is it possible to make Vim judge the filetype more reasonably(for instance, choose the filetype of the filename that contains the suffix) or prompt to let user choose if it cannot judge in a more complicated case?