Closed mroavi closed 4 years ago
Looks like you have other mappings that start with <c-\>
. Try doing :nnoremap <c-\>
to list them.
Apparently not: It outputs No mappings found
.
tmux
Does it happen outside of tmux? I think Ctrl+B is its default prefix key, Ctrl+\ might also be handled by it in some way.
I just found out that I missed a very important point in the description of the problem. Yesterday, I was observing this issue in both normal vifm
and also in Vim's vifm
plugin. Today I'm seeing that this only occurs with Vim's vifm
plugin. I should probably move this issue to the vifm
Vim plugin.
Could you transfer this issue to https://github.com/vifm/vifm.vim?
Special in the terminal window: *t_CTRL-W_.* *t_CTRL-W_N*
...
CTRL-\ CTRL-N go to Terminal-Normal mode, see |Terminal-mode|
So if you run vifm inside tmux inside Vim, that explains issues with both keys.
Can't move the issue now, github fails to open issue transfer form.
Oh wow. Great catch. I didn't even know about the existence of this Terminal-Normal
mode. Is it possible to unmap CTRL-\ CTRL-N
? Probably not because it is a Vim internal command, right?
I don't think it's possible, you have to always type it using 'termwinkey'
, so Ctrl+WCtrl+\ if you haven't changed the option.
Vim has two mappings for the exact same thing. What a shame that I cannot unmap the latter one:
CTRL-W N go to Terminal-Normal mode, see |Terminal-mode|
CTRL-\ CTRL-N go to Terminal-Normal mode, see |Terminal-mode|
The first one depends on the value of 'termwinkey'
, the second one is always there. I guess the second one is meant to be used in user mappings.
Clear. Thanks a lot @xaizek. It's now clear to me why I can't close Vim's vifm
plugin with <C-Bslash>
. I will close this issue.
I have the following mapping in my
vifmrc
:The problem I'm facing is that I need to press
<c-\>
followed by any other key so that the command gets triggered. Any idea how to fix this? I noticed that this also happens withbut it doesn't happen with
nnoremap <c-j> :exit<cr>
I'm using
tmux
:and this version of
vifm
: