Ⅰ. 插件描述
Vim syntax, indent, and filetype plugin scripts for PowerShell files.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hackworth/vim-ps1-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hackworth/vim-ps1-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hackworth/vim-ps1-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hackworth/vim-ps1
Ⅳ. 文档说明
PowerShell for Vim
These scripts were pulled from Peter Provost's set of scripts on vim.org.
- Syntax: vimscript #1327
- Indent: vimscript #1815
- Filetype Plugin: vimscript #1816
Installation
Copy these files in your .vim or _vim directory. Alternatively, if you're
using Pathogen, you can clone this repository or copy the files to a
subdirectory of your .vim/bundle directory.
Insert au BufNewFile,BufRead *.ps1,*.psc1 setf ps1 into your .vimrc
file, or if you're using Janus, your .vimrc.before file.