Ⅰ. 插件描述
Vim syntax file & snippets for Docker's DockerfileⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ekalinin/dockerfile-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ekalinin/dockerfile-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ekalinin/dockerfile-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ekalinin/dockerfile.vim
Ⅳ. 文档说明
Dockerfile.vim
Vim syntax file for Docker's Dockerfile
and snippets for snipMate.
Screenshot
Here is an example in gnome-terminal with vim-monokai color scheme:
Installation
$ git clone https://github.com/ekalinin/Dockerfile.vim.git
$ cd Dockerfile.vim
$ make install
Or using Pathogen:
# Clone directly into the bundle folder.
git clone https://github.com/ekalinin/Dockerfile.vim.git bundle/Dockerfile
Or using Vundle:
# near the top of your .vimrc
Plugin 'ekalinin/Dockerfile.vim'
Or using NeoBundle:
NeoBundle 'ekalinin/Dockerfile.vim'
License
See LICENSE file.