Correctly detects C/C++ filetypes and maps keys according to them.