sponsor Vim development Vim logo Vim Book Ad

code_complete : function parameter complete, code snippets, and much more.

 script karma  Rating 1603/522, Downloaded by 17753    Comments, bugs, improvements  Vim wiki

created by
Ming Bai
 
script type
utility
 
description
Get the latest version from Github:
https://github.com/mbbill/code_complete


Demo :http://files.myopera.com/mbbill/files/code_complete.gif
It shows what this script can do.
In insert mode, when you type "<tab>"(default value of g:completekey) after function name with a "(" , function parameters will be append behind, use "<tab>" key again to switch between parameters.
This key is also used to complete code snippets.
Example:
press <tab> after function name and (    
  foo ( <tab>                            
becomes:                                  
  foo ( `<first param>`,`<second param>` )
press <tab> after code template          
  if <tab>                                
becomes:                                  
  if( `<...>` )                          
  {                                      
      `<...>`                            
  }                                      
 
install details
1. Put code_complete.vim to plugin  directory.                          
2. Use the command below to create tags file including signature field.    
   ctags -R --c-kinds=+p --fields=+S .
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
code_complete.vim 2.9 2009-06-08 7.0 Ming Bai Set file format to unix.
code_complete.vim 2.8 2009-04-04 7.0 Ming Bai Add support to function pointer.
code_complete.vim 2.7 2007-07-20 7.0 Ming Bai No longer force set selection to inclusive.
code_complete.zip 2.6 2007-03-06 7.0 Ming Bai new features:  user defined snippets file support.
changes:   '('  no longer used , and one "<tab>" after '(' instead.
code_complete.vim 2.5 2007-01-24 7.0 Ming Bai Speed up the script when the tag file is very big, thanks to Martin Stubenschrott.
code_complete.vim 2.4 2007-01-22 7.0 Ming Bai bugfix
code_complete.vim 2.3 2007-01-21 7.0 Ming Bai Some improvements, including hot key customization and so on.
code_complete.vim 2.2 2007-01-11 7.0 Ming Bai Initial upload
ip used for rating: 54.225.1.70

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo