sentinel.vim


Ⅰ. 插件描述

Sentinel language syntax highlighting for vim

Ⅱ. 基本信息

创建日期:  2017-08-22
使用用户:  4
Github星:  7
插件作者:  HashiCorp

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Sentinel syntax highlighting and formating for Vim and Nvim

To install this plugin you can use Vundle or another plugin manager for Vim:

Plugin 'hashicorp/sentinel.vim'

Once the plugin is loaded files with the extension .sentinel will be syntax highlighted according to the language specification. To enable formatting of Sentinel files on save, download and install the free Sentinel simulator from the following location https://releases.hashicorp.com/sentinel/0.1.0/ and save it somewhere in your path. When a file is saved the plugin will run sentinel fmt with the current buffer.

添加新评论