neoterm
neoterm copied to clipboard
When `g:neoterm_autoscroll` is set, running `T` or `Tredo` enters insert mode.
Describe the bug
When I run T
or Tredo
from a buffer, I expect to be left in normal mode.
This is not the case when g:neoterm_autoscroll
is set to 1.
To Reproduce Steps to reproduce the behavior:
- Set
g:neoterm_autoscroll
to 1 anywhere (e.g., in the .vimrc file) - Open a terminal with
Topen
- Send any commend, e.g.,
T ls
. You'll see that it enters insert mode after running the command.
Expected behavior Execute the command and leave me in normal mode.
Versions (Issues without this information will take longer to be answered/solved):
- OS: reproduceable on both OS X and Ubuntu 20.04
- neoterm commit master/533d311
- Add all the configuration you have for neoterm
let g:neoterm_repl_command = '' let g:neoterm_autoscroll = 1 nnoremap - :vert Ttoggle<CR><Esc> inoremap <M-Enter> <Esc>:TREPLSendLine<CR> nnoremap <M-Enter> :TREPLSendLine<CR><Esc> vnoremap <M-Enter> :TREPLSendSelection<CR><Esc>
- Vim or Neovim
- [ ] vim
- [X] neovim
- Version 0.6.1