Ⅰ. 插件描述
supervisor wrappers for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'thiderman/vim-supervisor'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'thiderman/vim-supervisor'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'thiderman/vim-supervisor'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/thiderman/vim-supervisor
Ⅳ. 文档说明
vim-supervisor
supervisorctl wrapper in vim from anywhere inside your project. Manage your
processes from a fugitive-like control buffer, send SIGHUPs when saving your
files or view your logs from anywhere in your project.
Amazing features:
- Control buffer with syntax highlighting! Run
:Sstatusand you will get a
buffer with the current output ofsupervisorctl status. Each row has a few
mappings relating to it's process: R will restart the service. S will start
or stop it depending on it's current state. o will open the stdout log file
and e will open the stderr file. If you have TailBundle installed, the logs
will automatically tail.
- Quickfast editing! Run
:Seditto open your supervisord.conf file from
anywhere in your project. Give it arguments and it will open files in the
supervisord directory (e.g. :Sedit include.d/doomsday_laser.conf). Glorious
tab completion is provided!
- Log management:
:Stail <app> <stream>to open log and error files. As with
opening them from the control buffer, if you have TailBundle, smooth tailing
will take place.
- General wrapper: The
:Supervisorcommand wraps around all the commands
that supervisorctl usually handles. As always, tab completion is your friend!
Installation
If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/thiderman/vim-supervisord.git
Once help tags have been generated, you can view the manual with:help supervisord.
FAQ
I installed the plugin and started vim. Why does only the :Supervisor
command exist?
This plugin will activate when it thinks it's inside a supervisord managed
- That is, anywhere inside a directory that has a parent or a
- that contains a supervisord.conf file. Should your project be out of
scope for this, you can specify it with g:supervisord_apps. See:help supervisor-config
Contributing
If your commit message sucks,
I'm not going to accept your pull request. Tim Pope explained very politely
dozens of times that
his general guidelines
are absolute rules on his repositories, and I agree with them and apply them to
my repositories as well. And please, if I ask you to change something,git commit --amend.
License
Copyright (c) Lowe Thiderman. Distributed under the same terms as Vim itself.
See :help license.