math


Ⅰ. 插件描述

Math keymap and a menu for inserting math symbols

Ⅱ. 基本信息

创建日期:  2009-07-29
使用用户:  1
Github星:  2
插件作者:  Charles Campbell

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This plugin has three parts, a keymap, a menu for inserting math symbols, and a few maps.  The characters produced are in utf-8.

The Keymap:

  :set kmp=math

  Uses vim's keymap support to define key sequences which elicit Greek
  upper case and lower case symbols, superscripts, subscripts, "vulgar"
  fractions, arrows, grouping symbols, operators, relational symbols,
  set symbols, and of course the ever popular miscellaneous.

The Menu:
  To enable the menu, use the mouse to select  [DrChip.MathKeys.Enable].
  This menu operates in the insert/replace/ex mode; when in insert/replace/ex,
  use the mouse to select a symbol from the various menus and it will be
  inserted.

The Maps:
  While in visual block mode, and if :MathStart has been run:
  _  will make various symbols into subscript symbols (numbers, vowels)
  ^ will make various symbols into superscript symbols
  & will transform symbols into related math symbols (- into a division line, roman alphabet into Greek, etc)

(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#MATH)

添加新评论