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

Having trouble setting a key mapping for neoterm_clear_cmd #324

Open
DevonPeroutky opened this issue Jul 9, 2021 · 0 comments
Open

Having trouble setting a key mapping for neoterm_clear_cmd #324

DevonPeroutky opened this issue Jul 9, 2021 · 0 comments
Labels

Comments

@DevonPeroutky
Copy link

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>"]
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