How to change key binding for backward search in VIM?

0

I am using VIM 7.2 remotely (in a server), and when I try to hit the question mark (in insert mode) it exits insert mode, and prompts for a backward search. In short, I can't type ? as plain text inside the edited file, even in insert mode.

The only available way to input ? in my computer is via RIGHT ALT+W key combination.

Thus, how can I change the key binding for backward search and release ? to be used as text?

It never happened to me in any VIM version I have ever used...

Thanks!

--

UPDATE: I discovered the source of the issue: it only happens when I am accessing the server via Windows terminal with OpenSSH. When accessing it from standard Ubuntu terminal, everything goes normal. There is actually no solution other than to access the server through other methods, as stated in the comments by @Heptite.

Girardi

Posted 2014-09-30T20:09:38.987

Reputation: 101

1This is definitely not normal Vim behavior. What does :verbose imap ? show? – Heptite – 2014-09-30T21:14:06.087

@Heptite: I discovered the source of the issue; it only happens when I am accessing the server via Windows terminal with OpenSSH. When accessing it from my Ubuntu, everything goes normal. – Girardi – 2014-10-01T00:07:37.673

I either use PuTTY, or Cygwin's Mintty and ssh. – Heptite – 2014-10-01T03:23:46.087

No answers