neoterm icon indicating copy to clipboard operation
neoterm copied to clipboard

When `g:neoterm_autoscroll` is set, running `T` or `Tredo` enters insert mode.

Open yzhuang opened this issue 3 years ago • 0 comments

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:

  1. Set g:neoterm_autoscroll to 1 anywhere (e.g., in the .vimrc file)
  2. Open a terminal with Topen
  3. 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

yzhuang avatar Feb 23 '22 00:02 yzhuang