I was using vim-tmux-navigator and <C-j>
had always worked.
One day, I found it doesn't work anymore.
When doing <C-v><C-j>
, <C-v><C-m>
, <C-v><enter>
in command mode, they all give me ^M
.
However testing on my colleague's Mac, the <C-j>
would return ^@
instead.
All I know is:
- The plugin maps
<NL>
and<CR>
instead of some specific keystrokes :verbose map
shows nothing suspicious. No<C-j>
mappings. Only mapping<NL>
and<CR>
to:TmuxNavigateDown
.
Any ideas? (I am using iTerm2)
^@
is the NULL byte (0x00), which is a weird key code to sendvim -u NONE
and:nn <NL> ij<esc>
and pressing<C-j>
doesn't work, but:nn <C-m> ij<esc>
would insert thej
when I press<C-j>
. How may I carry on any investigation?