clavim


Ⅰ. 插件描述

clavim is (going to be) a better C, C++, and Obj-C syntax highlighter for vim based on libclang from the Clang project in the LLVM tree

Ⅱ. 基本信息

创建日期:  2011-07-23
使用用户:  2
Github星:  6
插件作者:  Richard Davison

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'rdavison/clavim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'rdavison/clavim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'rdavison/clavim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

clavim (latin acc. for "key")

clavim is (going to be) a better C, C++, and Obj-C syntax highlighter for vim
based on libclang from the Clang project in the LLVM tree

To run the plugin, you need the latest libclang you can get your hands on. To
do that, follow the instructions at:

http://clang.llvm.org/get_started.html

Once you have libclang in your path, copy:

clang/ 
clavim.py 
clavim.vim

to your vim's plugins folder (on mine it's $HOME/.vim/plugin)

Also, your vim needs to be compiled in such a way that you can script it with

  1. I'm using the vim I found in Debian's apt repository, and it came
  2. with python support.

TODO:

- find a way to track member variables once they've been highlighted so as 
  not to have to have to reparse the AST every time I want to update the 
  highlight's absolute position
- perhaps use libclang to highlight lines that have syntax errors?

添加新评论