CRefVim


Ⅰ. 插件描述

a C-reference manual especially designed for Vim

Ⅱ. 基本信息

创建日期:  2003-04-06
使用用户:  26
Github星:  8
插件作者:  Christian Habermann

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

The intention of this project is to provide a C-reference manual that can
be viewed with Vim and accessed from within Vim.
The C-reference is a reference, it is NOT a tutorial or a guide on how
to write C-programs. It is a quick reference to the functions and syntax
of the standard C language.

There are several ways to specify a word CRefVim should search for in order
to view help:

  <Leader>cr normal mode:  get help for word under cursor
                           Memory aid cr: (c)-(r)eference
  <Leader>cr visual mode:  get help for visually selected text
                           Memory aid cr: (c)-(r)eference
  <Leader>cw:              prompt for word CRefVim should search for
                           Memory aid cw: (c)-reference (w)hat
  <Leader>cc:              jump to table of contents of the C-reference manual
                           Memory aid cc: (c)-reference (c)ontents

Note: by default <Leader> is , e.g. press cr to invoke C-reference

Note: The best way to search for an operator (++, --, %, ...) is to visually
select it and press <Leader>cr.

To get help do :help crefvimdoc
To show the C-reference manual do :help crefvim

添加新评论