Home > Q&A > body text
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"
大家讲道理2017-05-16 16:38:30
You need to use expand
if expand('<afile>:t:e') == "cpp"