code_junkie

vim keyword completion

Nov 12th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. sca //here i press control+N, it doesnot complete to scanf
  5. }
  6.  
  7. set path+=/usr/include/**
  8. set path+=/my_include_dir/include
  9. set path+=/my_include_dir/srclib/apr/**
  10. set path+=/my_other_include_dir/srclib/apr-util/**
  11.  
  12. ** means all sub-directories.
  13. * means all contained directories
  14. . means all files in the directory of the found file
  15. += means prepend to existing path (iirc)
  16.  
  17. :checkpath
  18.  
  19. :checkpath!
  20.  
  21. ^x ^o = "omnicomplete"
  22. ^x ^i = "included-files completion"
  23. ^x ^f = "path completion"
  24. ^x ^l = "Complete this line using one that looks the same"
  25.  
  26. :help ins-completion
Add Comment
Please, Sign In to add comment