Ⅰ. 插件描述
Vim plugin for working with the Phoenix frameworkⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'avdgaag/vim-phoenix-enchanted'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'avdgaag/vim-phoenix-enchanted'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'avdgaag/vim-phoenix-enchanted'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/avdgaag/vim-phoenix
Ⅳ. 文档说明
# vim-phoenix
This plugin helps you navigate and develop projects using the [Phoenix web
framework][phoenix]. A Phoenix project is detected by looking for a mix.exs
file along with web directory. When you edit a file in a Phoenix project, this
plugin will be activated. This sets various options and defines some commands.
It also integrates with other Vim plugins.
Features
- Integrates with [vim-projectionist][] for navigating project files according
to Phoenix conventions. - Comes with extra mappings for [vim-surround][].
- Comes with extra snippets for [UltiSnips][].
- Provides
:Mixcommand that delegates tomix. - Provides project-specific Vim navigation settings for
pathandsuffixesadd.
See the documentation (:help phoenix) for more information.
Installation
Use your favourite Vim plugin manager to install this plugin. I use
[pathogen][]. Otherwise, download this plugin and put the files in its
subdirectories to the corresponding subdirectories in your ~/.vim directory.
About
To find our more about the Phoenix framework, see:
https://github.com/phoenixframework/phoenix
To get the latest updates or report bugs, see this plugin's Github repository:
https://github.com/avdgaag/vim-phoenix
Credits
Author: Arjan van der Gaag
URL: http://arjanvandergaag.nl
This plugin is based on earlier work by Tim Pope, who has released many
incredible Vim plugins.
License
See LICENSE.