I want to determine whether the suffix name of the current file is equal to a certain suffix in the if conditional statement, but %:t:e=="cpp" does not seem to be correct Grammar, what is the correct grammar?
if
%:t:e=="cpp"
小伙看你根骨奇佳,潜力无限,来学PHP伐。
You need to use expand
if expand('<afile>:t:e') == "cpp"
You need to use expand