vim-sml


Ⅰ. 插件描述

Vim support for Standard ML programming

Ⅱ. 基本信息

创建日期:  2016-09-04
使用用户:  3
Github星:  7
插件作者:  Thomas Allen

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'oinksoft/vim-sml-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'oinksoft/vim-sml-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'oinksoft/vim-sml-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-sml

Vim support for Standard ML programming.

Provides:

  • Improved syntax highlighting for Standard ML
  • Syntax highlighting for MLBasis, SML/NJ CM, ML-Lex, Smackage
  • Improved intendation rules for Standard ML
  • Indentation rules for SML/NJ CM
  • Filetype detection:

    • sml: .fun, .ML, .sig, .smi
    • smlcm: .cm
    • mllex: .lex
    • mlyacc: .grm
    • mlbasis: .mlb
    • spackspec: .smackspec
  • Comment support for MLBasis, SML/NJ CM, ML-Lex
  • Conceal characters for Standard ML ('a -> α, etc.)
  • a.vim support for Standard ML (.sml <-> .sig/.smi, .lex <-> .grm/.yacc)
  • matchit.vim support for Standard ML and ML-Lex (struct/sig <-> end, local/let <-> in)

This includes syntax highlighting improvements and conceal chars from
https://github.com/jez/vim-better-sml

License

MIT

添加新评论