Reputation: 749
I am working with vim on debian.
When I press ctrl-]
vim beeps, inserts a new line and goes to "visual block". It does not jump to tag. The same happens with :ctrl-]
. Even in insert-mode with ctrl-]
vim exits from insert-mode, insert new line and goes to 'visual block'.
But when I use such lines in .vimrc
nnoremap <F3> <c-]>
vnoremap <F3> <c-]>
jumping with F3 works.
Command :verbose map c-]
returns No mapping found
update:
As we have discovered in insert mode we can see how vim is interpreting <c-]>
. In insert mode after <c-V><c-]>
the correct output should be ^]
. But my output is
t
^C
Screenshots: after <c-v>
I get
And after <c-v><c-]>
.
So vim isn't receiving the keystrokes properly. How to check what changes input?
Upvotes: 1
Views: 1881
Reputation: 24812
try running vim -u NONE
to check if that's happening without any configuration, that way you can be sure it's not a mapping or misconfiguration.
Also try doing it in gvim
and gvim -u NONE
to narrow down the issue to what it's very likely to be. If that works it's a shell or terminal misconfiguration.
xev
to see what your key outputs, and xmodmap
to printout the values assigned to all your keys on your keyboard layout.Try using another terminal (like urxvt
, gnome-terminal
, xterm
or the raw linux console), to determine whether it's a terminal emulator misconfiguration of your keys or if it's your shell.
Try changing shell to see if that improves (by I doubt it will)… And add the following configuration files in your home directory:
.inputrc
Tab: complete
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
If that's not enough, you might want to check as well you stty
settings for your current shell as well.
If none of that helps, then… take a big hammer and hit very hard your keyboard and your computer, that won't solve your situation, but you'll feel better!
HTH
Upvotes: 1