//mapping1
tnoremap <Esc> <C-\\> <C-n>
// mapping2
let localleader = "\\"
tnoremap <Esc> C<localleader> <C-n>
I tried to modify the above mapping by replacing '\' by a localleader;
But it just prints C\ ^N in the terminal. Can anyone help me to find the mistake?