Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

VIM Autocompletion

Name: VIM 2010-10-21 9:50

Hy guyz,
i am trying to add autocompletion to vim. I want to show list of possible function names every time I press some key.
For example I want to get list like:
printf
printing
etc
when I am writing pr
There is a shortcut for it (CTRL+N or CTRL+P) but i dont know how to add it to .vimrc.
Anyone with great idea?

Name: Anonymous 2010-10-21 10:24

Use ed instead. viitor isn't even a word!

Name: Anonymous 2010-10-21 10:32

While you are editing:
CTRL+P
CTRL+N

Name: Anonymous 2010-10-21 10:32

What do you need to add to .vimrc? It works normally whithout need to be setted...

Name: VIM 2010-10-21 10:54

I know the is CTRL+P/CTRL+N even CTRL+X combinations. But I want to see the list every time I press some key in edit mode. I dont want to press CTRL+P every time.

Name: Anonymous 2010-10-21 11:11

:h compl-omni

thank me later

Name: Anonymous 2010-10-21 12:09

>>5
I want to see the list every time I press some key
I dont want to press CTRL+P every time

This is what VIM users actually believe.

Name: Anonymous 2010-10-21 12:10

it's like just google it and find the first vim scripts result?

Name: Anonymous 2010-10-21 13:45

>>1-san is actually an emacs user trying to make vimmers look bad.

Name: Anonymous 2011-02-02 23:30

Name: Anonymous 2011-02-17 20:23

check 'em dubz

Name: Anonymous 2012-07-26 21:10

>>1
Switch to Visual Studio

Name: Anonymous 2012-07-26 21:13

>>1
$ yaourt -S vim-supertab vim-clang-complete

Name: Anonymous 2012-07-26 22:09

You don't need to do this in GNU nano.

You are all casuals.

Name: Anonymous 2012-07-26 22:27

imap <F2> <C-n>

if you want your special key to be F2.

Name: Anonymous 2012-07-27 0:55

>>15
I use F2 to show file tree.

Name: Anonymous 2012-07-27 1:06

You spend hours trying to replicate the default functionality of superior proprietary software.

Name: Anonymous 2012-07-27 2:02

>>17
Can you bind the letter e to put d, and the letter d to put e, when in insert mode? I think not!

Name: Anonymous 2012-07-27 4:51

Install clang_complete plugin. That's pretty much as good as VISUAL STUDIO INTELLISENSE.

Seriously though, I tried it once, and it's pretty good.

Name: Anonymous 2012-07-27 6:52

>>17
Default functionality took hours to implement so it's the same thing.

Name: Anonymous 2012-07-27 8:01

How would you go about achieving the same on Emacs?

Name: Anonymous 2012-07-27 12:14

AUTOCOMPLETE MY dubs

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List