5

I have just started using vim and am using an existing .vimrc and .gvimrc. It works great, except the Tab key doesn't tab...it brings up a code completion plug-in. I don't know where to start as I am brand new to vim. How can I make the Tab key generate a tab???

CocoB
  • 53
  • 1
  • 3

2 Answers2

16

First, find out which script or plugin changed the meaning of your key:

:verbose imap <Tab>

Then disable the offending plugin by removing it from your ~/.vim/plugins.

Marius Gedminas
  • 11,010
  • 4
  • 41
  • 39
  • @CocoB: if that fixed it for you, consider accepting the answer. – Dummy00001 Jul 27 '10 at 12:03
  • 1
    If `:verbose imap ` returns "No mapping found" but `:iunmap ` makes the tab key work again, it is most likely that ctrl-i is mapped. Try `:verbose imap `, you'll see that the tab key will execute what is mapped to. See: https://stackoverflow.com/a/14642074/9157799 – M Imam Pratama Mar 11 '21 at 12:34
2

If all you want to do is disable the tab mapping just do:

:iunmap <Tab>
JSBձոգչ
  • 40,684
  • 18
  • 101
  • 169