[LLVMdev] Vim auto completion

Dan Gohman gohman at apple.com
Sat Oct 30 09:27:30 PDT 2010


The clang patches are now applied, so vim auto completion now works mostly
out-of-the-box -- just build clang, set up your PATH for clang and clang++,
and copy utils/vim/vimrc to ~/.vimrc (or symlink, or do your own thing).

To configure the clang command-line, look for the g: configuration
variables in the vimrc file.

I'm open to suggestions about the handling of function parameters. One
option would be to emit something like

   foo(/*int x*/, /*int y*/)

to show the types of the arguments to be filled in.  Right now this information
is just in the info box at the top.

Dan





More information about the llvm-dev mailing list