after/syntax/c.vim


Ⅰ. 插件描述

C Syntax Extensions

Ⅱ. 基本信息

创建日期:  2010-04-17
使用用户:  3
Github星:  9
插件作者:  Mikhail Wolfson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/after-syntax-c-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/after-syntax-c-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/after-syntax-c-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/aftersyntaxc.vim

Ⅳ. 文档说明

This file, instead of replacing the normal c.vim file, incorporates and improves upon some of the changes added in vimscript #1201, "Extended original c.vim." Because this file goes in $VIMRUNTIME/after/syntax, it appends these additional definitions to whatever c.vim file comes with the version of Vim you use.

The main additions identify operators, delimiters, and user-defined functions/function calls. Also included is a wealth of standard ANSI C function names as keywords. This makes C files look significantly richer, especially if your colorscheme includes color variants for the additional syntax groups.

The Match regexps for user-defined functions have been improved. The rest is mostly just selective porting from the c.vim in vimscript #1201.

添加新评论