vim-tickscript


Ⅰ. 插件描述

Vim syntax highlighting for TICKscript

Ⅱ. 基本信息

创建日期:  2015-11-11
使用用户:  24
Github星:  23
插件作者:  Nathaniel Cook

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Vim Support for TICKscript

Syntax highlighting

This plugin provides basic syntax highlighting for all TICKscript files denoted by the .tick extension.

Install

Plugin managers are preferred. For Pathogen just clone the repo. For other
plugin managers add the appropriate lines and execute the plugin's install
command.

  • Pathogen

    • git clone https://github.com/nathanielc/vim-tickscript.git ~/.vim/bundle/vim-tickscript
  • vim-plug

    • Plug 'nathanielc/vim-tickscript'

You will need the tickfmt command in your PATH in order to format TICKscript files.
You can easily install them with the included :TickInstallBinaries command. If invoked,
all necessary binaries will be automatically downloaded and installed to your $GOBIN
environment (if not set it will use $GOPATH/bin). Note that this command requires git
for fetching the individual Go packages. Additionally, use :TickUpdateBinaries to update the
installed binaries.

Optionally, you can manually download and install the required binaries using the following command:

go get github.com/influxdata/kapacitor/tick/cmd/tickfmt

Formatting

By default this plugin will format TICKscript files on save.

These options are available:

" The command to use to format TICKscripts, should not need to be changed
" g:tick_fmt_command [default="tickfmt"]

" Whether to format on save
" g:tick_fmt_autosave [default=1]

" Whether to enable experimental features that do a better job of preserving cursor, undo history etc.
" g:tick_fmt_experimental [default=0]

The command :TickFmt will format the current buffer.

Credits

This plugin is a slightly modified version of https://github.com/fatih/vim-go/.
Many thanks to Fatih for his amazing work!

添加新评论