Use UltiSnips via <C-j> so that it does not mess up YouCompleteMe. (see https://github.com/Valloric/YouCompleteMe/issues/36)