PDA

View Full Version : vim: auto include libraries



l3ecl
October 6th, 2010, 09:58 PM
I was wondering if vim had an auto include feature similar to Eclipse's (http://depth-first.com/articles/2008/01/11/my-favorite-eclipse-shortcut-quick-fix)


Example would be, if I had a rand() function, vim would automatically inlcude
#include <stdlib.h> in the header.

l3ecl
October 7th, 2010, 08:38 PM
ding dong head bump

spjackson
October 7th, 2010, 09:37 PM
I am not aware of an existing vim feature that does this automatically.