Having trouble setting a key mapping for `neoterm_clear_cmd`
DevonPeroutky opened this issue · 0 comments
DevonPeroutky commented
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:
- Add
let g:neoterm_clear_cmd = ["\<c-9>"]
in .vimrc - Opened a neoterm with
:Tnew
- Execute a few commands
- press 'ctrl + 9' in normal mode or terminal mode
- 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>"]