sponsor Vim development Vim logo Vim Book Ad

cguess : C and C++ identifier completion

 script karma  Rating 12/6, Downloaded by 1065  Comments, bugs, improvements  Vim wiki

created by
Andrzej Zaborowski
 
script type
utility
 
description
Cguess is a (Yet another?) C/C++/Java™ syntax auto-completer meant to be used as a plugin for VIM text editor or others. See its homepage: http://www.zabor.org/cguess and the README file for details.

This is an early version and is quite limited. It works the "intellisense"-style way but the interface is quite primitive in this version. It maps several key combinations in insert mode and will show a list of members in a splitted window, function prototypes or the list of enumerators in comparisons (after typing == or !=) whenever possible.

Cguess is based on a true C++ language parser (like the compilers) and understands even the most complex syntactic constructs (but it will refuse to parse programs that contain errors). The parser supports several GNU extensions to C and C++ and some ISO and ANSI specific ideas.

Java™ is not supported.

If you use cguess, help Uganda.
 
install details
Cguess now works on GNU/Linux, GNU/Hurd, FreeBSD and OpenBSD with GCC installed, but will be made more portable in future.

To install simply untar and do the following:
./configure       # type ./configure --help to see options
make
make install     # requires permissions

After you start editing a C or C++ file for the first time please check if the value of g:cguessCFLAGS (type ":echo g:cguessCFLAGS") is correct for your system. If you type ":let g:cguessVertical=0", the identifiers will be displayed together with their types in a window above the buffer you're editing. There are some more variables you may want to customize. Set the values from inside your .vimrc to make them permanent.

After you get tired of it, just go to the same directory and type:
make uninstall
If you had removed the directory, untar it again and rerun configure with the same parameters first.
 

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
cguess-0.2snapshot1.tar.bz2 0.2.1 2005-06-24 6.0 Andrzej Zaborowski Many bugfixes, some speed improvements and security checks,
Improved interface (searching, sorting) and makefiles,
Support for the GNU C anonymous unions (union { blah; };) extension,
Improved C++ linkage specifications (extern "C" { int operator; }),
Using hash tables instead of trees,
cguess-0.2.tar.bz2 0.2 2005-06-20 6.0 Andrzej Zaborowski Initial upload
ip used for rating: 18.218.234.83

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.
   
Vim at Github