claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Enter in Insert in Vim Mode should insert newline

Open SamCB opened this issue 8 months ago • 1 comments

I'd expect when vim mode is enabled:

  • When in insert mode
    • pressing <enter> will insert a new line
    • pressing <ctrl/opt-enter> will submit
  • When in normal mode
    • pressing <enter> will submit

This is similar to how other vim specific ai chats work (e.g. Avante in neovim)

Currently <enter> will always submit the chat, whether in insert mode or not

SamCB avatar Apr 29 '25 02:04 SamCB

+1 for this. Also, I suggest using vim commands like ZZ for submitting messages.

nikomatsakis avatar Jun 01 '25 12:06 nikomatsakis

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Oct 10 '25 10:10 github-actions[bot]