Ⅰ. 插件描述
Puppet niceties for your Vim setupⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'netdata/vim-puppet-speak-now'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'netdata/vim-puppet-speak-now'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'netdata/vim-puppet-speak-now'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/netdata/vim-puppet
Ⅳ. 文档说明
vim-puppet
Make vim more Puppet friendly!
Provides
- Formatting based on the latest Puppetlabs Style Guide
- Syntax highlighting
Automatic => alignment (when the tabular plugin is also installed)
- If you don't like that, add
let g:puppet_align_hashes = 0to your vimrc.
- If you don't like that, add
- Doesn't require a bloated JRE
- Doesn't take minutes to open
For bonus points, install the
syntastic plugin for automatic
syntax checking while in vim.
Installation
If you're using pathogen to manage your vim modules (and if you're not, why
aren't you), you can simply add this as a submodule in your ~/.vim/bundle/
directory.
My entire home directory is a git repository, so for me it's simply a case of
$ git submodule add -f git://github.com/rodjek/vim-puppet.git .vim/bundle/puppet
If you're not using pathogen, you can just manually place the files in the
appropriate places under ~/.vim/