# Vim autocomplete

**URL:** <https://www.ruby-forum.com/t/vim-autocomplete/69019>\
**Category:** Ruby\
**Created:** [September 18, 2006, 5:41am UTC](https://www.ruby-forum.com/t/vim-autocomplete/69019 "2006-09-18T05:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@djmook](https://www.ruby-forum.com/u/djmook)\
**Post date:** [September 18, 2006, 5:41am UTC](https://www.ruby-forum.com/t/vim-autocomplete/69019/1 "2006-09-18T05:41:06Z")

</div>

I recently installed vim 7. The only autocomplete I can find it the  
omnicomplete, using CTRL-X CTRL-O. Is there a way to make  
auto-completion automatic, and if not, is there a way to change the  
shortcut so I don’t have to hit CTRL-X CTRL-O every time?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![djmook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@djmook](https://www.ruby-forum.com/u/djmook)\
**Post date:** [September 18, 2006, 6:27am UTC](https://www.ruby-forum.com/t/vim-autocomplete/69019/2 "2006-09-18T06:27:00Z")

</div>

Try in insert mode.

---

<div class="post-metadata">

**Author:** ![djmook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@djmook](https://www.ruby-forum.com/u/djmook)\
**Post date:** [September 18, 2006, 1:37pm UTC](https://www.ruby-forum.com/t/vim-autocomplete/69019/3 "2006-09-18T13:37:35Z")

</div>

On Monday 18 September 2006 12:35, A. S. Bradbury wrote:

> Check out supertab[1], it allows you to use tab for the completion type of  
> your choice, tab will work as normal when the cursor is not at the end of a  
> word.

Forgot the link

1. [Error : vim online](http://www.vim.org/scripts/script.php?script_id=1643)

---

<div class="post-metadata">

**Author:** ![djmook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@djmook](https://www.ruby-forum.com/u/djmook)\
**Post date:** [September 18, 2006, 1:35pm UTC](https://www.ruby-forum.com/t/vim-autocomplete/69019/4 "2006-09-18T13:35:35Z")

</div>

On Monday 18 September 2006 05:26, JeffC wrote:

> Try in insert mode.
> 
> Mark C. wrote:
> 
> > I recently installed vim 7. The only autocomplete I can find it the  
> > omnicomplete, using CTRL-X CTRL-O. Is there a way to make  
> > auto-completion automatic, and if not, is there a way to change the  
> > shortcut so I don’t have to hit CTRL-X CTRL-O every time?
> > 
> > Thanks in advance.

Check out supertab[1], it allows you to use tab for the completion type  
of  
your choice, tab will work as normal when the cursor is not at the end  
of a  
word.

As the options suggestion, just add the following to your .vimrc for tab  
to  
map to omni-completion:  
let g:SuperTabDefaultCompletionType = “”

Regards,  
Alex
