mapping tab key in vim

:verbose nmap <Tab>

will show you the current mapping(s). If two are listed, the one with an @ prefix before the right-hand side is a buffer-local mapping that overrides your global one. You then need to find its definition (somewhere in ftplugin/cpp*.vim, or via an :autocmd FileType cpp) and disable it.