nvim --version: 0.1.7$TERM: st-256colorNeovim execute first command and does not recognize \
Neovim execute the two commands divided by \
nvim -u NORCnvim -u NORC
:tnoremap <F7> <C-\><C-n> <bar> :q <CR>
:term
<F7>
Neovim execute the two commands divided by
one after another.
With the mapping you have, the bar is sent in normal mode. You need : before it.
Or just remove <Bar> altogether. There's no command that's being separated from :q<CR>. The mapping should really just be tnoremap <F7> <C-\><C-n>:q<CR>.
You should also be careful with whitespace in your mappings. Everything in the right-hand side of the mapping is used, so the spaces in <bar> :q <CR> would be used just as if you typed them.
Thank you for explanation.
Most helpful comment
Or just remove
<Bar>altogether. There's no command that's being separated from:q<CR>. The mapping should really just betnoremap <F7> <C-\><C-n>:q<CR>.You should also be careful with whitespace in your mappings. Everything in the right-hand side of the mapping is used, so the spaces in
<bar> :q <CR>would be used just as if you typed them.