Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
yzhuang opened this issue Feb 23, 2022 · 0 comments
Open
1 of 2 tasks
Labels

Comments

@yzhuang
Copy link

yzhuang commented Feb 23, 2022

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
    • neovim
  • Version 0.6.1
@yzhuang yzhuang added the bug label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant