vim autocomplete

M

Mark Chandler

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.
 
A

A. S. Bradbury

Try <ctrl-n> in insert mode.

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 = "<C-X><C-O>"

Regards,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top