kassio/neoterm

Having trouble setting a key mapping for `neoterm_clear_cmd`

DevonPeroutky opened this issue · 0 comments

Describe the bug
I am attempting to create a keymapping for clearing the terminal. From the documentation, it looks like I should be able to do

let g:neoterm_clear_cmd = ["\<c-9>"]

To set 'ctrl + 9' to be the key combination to clear the terminal. However nothing happens when I execute the combination in Terminal mode or Normal mode

To Reproduce
Steps to reproduce the behavior:

  1. Add let g:neoterm_clear_cmd = ["\<c-9>"] in .vimrc
  2. Opened a neoterm with :Tnew
  3. Execute a few commands
  4. press 'ctrl + 9' in normal mode or terminal mode
  5. Terminal will not be cleared

Expected behavior
Terminal will be cleared when the key combination passed to g:neoterm_clear_cmd is entered.

Configuration / Versions:

  • OS: MacOS
  • NeoVim v0.5.0.
  • NeoVim Build: Release

Neoterm configuration

let g:neoterm_autoinsert = 1
let g:neoterm_default_mod = 'botright'
let g:neoterm_clear_cmd = ["\<c-9>"]