Ⅰ. 插件描述
scriptease.vim: A Vim plugin for Vim pluginsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tpope/scriptease-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tpope/scriptease-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tpope/scriptease-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tpope/vim-scriptease
Ⅳ. 文档说明
# scriptease.vim
I make so many Vim plugins I had to make a Vim plugin for making Vim plugins.
Features
:PP: Pretty print. With no argument, acts as a REPL.:Runtime: Reload runtime files. Like:runtime!, but it unlets any
include guards first.:Disarm: Remove a runtime file's maps, commands, and autocommands,
effectively disabling it.:Scriptnames: Load:scriptnamesinto the quickfix list.:Messages: Load:messagesinto the quickfix list, with stack trace
parsing.:Verbose: Capture the output of a:verboseinvocation into the preview
window.:Time: Measure how long a command takes.:Breakadd: Like its lowercase cousin, but makes it much easier to set
breakpoints inside functions. Also:Breakdel.:Vedit: Edit a file relative the runtime path. For example,:Vedit plugin/scriptease.vim. Also,:Vsplit,:Vtabedit, etc.
Extracted from pathogen.vim.
K: Look up the:helpfor the VimL construct under the cursor.zS: Show the active syntax highlighting groups under the cursor.g=: Eval a motion or selection as VimL and replace it with the result.
This is handy for doing math, even outside of VimL.- Projections for
projectionist.vim.
See the :help for details.
Installation
Install using your favorite package manager, or use Vim's built-in package
support:
mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://tpope.io/vim/scriptease.git
vim -u NONE -c "helptags scriptease/doc" -c q
Once help tags have been generated, you can view the manual with:help scriptease.
Contributing
See the contribution guidelines for
pathogen.vim.
Self-Promotion
Like scriptease.vim? Follow the repository on
GitHub and vote for it on
vim.org. And if
you're feeling especially charitable, follow tpope on
Twitter and
GitHub.
License
Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
See :help license.