this post was submitted on 08 Dec 2023
6 points (87.5% liked)

Neovim

2155 readers
1 users here now

founded 1 year ago
MODERATORS
 

I have Ctrl-h mapped to move to the pane left of current in Normal Mode. If I forget that I'm in insert mode and do this, it just locked up Neovim and starts consuming processor until I force quit. I can't find what this mapping is trying to do and how to undo it. It occasionally causes me to lose work. Please help. :-)

EDIT: I just looked in my config to try to just add this binding to do the same thing in Insert Mode and discovered that that's what it's already supposed to do. I have CTRL-H mapped to , but all it does is lockup Neovim.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] philwills@programming.dev 3 points 10 months ago* (last edited 10 months ago) (1 children)

You probably already thought of this, but just in case, are you switching to normal before calling the command switch panes?

inoremap <silent> <c-h> <esc>:silent call TmuxMove('h')<cr>

Edit: if this doesn't work I give up...

[โ€“] rustbuckett@programming.dev 1 points 10 months ago

That's the thing. I forget to switch to normal mode, it just locks up. The default behavior is the backspace in insert mode, but that's not what it's doing. I'll try to remember to post my mappings.