Start C style Indent in Vi Editor
:set cindent
ctags
just make a command " ctags *" on your source directory. Ctags command will create one file called tags which contains defined
macros defined by #define
enumerated values
function definitions, prototypes, and declarations
class, enum, struct, and union names
namespaces
typedefs
variables (definitions and declarations)
class, struct, and union members
Now open vi editor with source file name and put
: tag
Syntax highlight:
:syntax on
Auto make
If you prepare makefile for your program then vi will allow you to run your program within vi. Just type
:make
[for more details :h make]