vim-elm-syntax


Ⅰ. 插件描述

Elm plugin for Vim

Ⅱ. 基本信息

创建日期:  2016-06-11
使用用户:  12
Github星:  10
插件作者:  Andy

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-elm-syntax

vim-elm-syntax only provides syntax highlighting. Other functionality (like compiling code) is provided by elm-language-server.

Features

  1. Syntax highlighting
  2. Automatic indentation

Missing features

Compiling, linting, formatting and other features aren't included in this plugin.
Have a look at elm-tooling/elm-vim for general instructions how to setup Vim with Elm.

Installation

  • Vim-Plug (recommended): Plug 'andys8/vim-elm-syntax'and run :PlugInstall
  • Vundle: Plugin 'andys8/vim-elm-syntax'
  • NeoBundle: NeoBundle 'andys8/vim-elm-syntax'
  • Pathogen: cd ~/.vim/bundle && git clone https://github.com/andys8/vim-elm-syntax
  • Vim 8+: git clone --depth 1 https://github.com/andys8/vim-elm-syntax.git ~/.vim/pack/git-plugins/start/vim-elm-syntax

Note about vim-polyglot

If you are using vim-polyglot, you need to disable its default elm plugin by adding let g:polyglot_disabled = ['elm'] to your config file.

Credits

This repository is a fork of ElmCast/elm-vim.
All credits go to the authors of this repository.

  • Joseph Hager
  • Contributors of elm-vim
  • Other vim-plugins, thanks for inspiration (elm.vim, ocaml.vim, haskell-vim)

License

Copyright © Joseph Hager. See LICENSE for more details.

添加新评论