apthogen


Ⅰ. 插件描述

Easily manage your vim's plugins

Ⅱ. 基本信息

创建日期:  2016-04-10
使用用户:  0
Github星:  2
插件作者:  epp gregory

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'vhalholl/apthogen'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'vhalholl/apthogen'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'vhalholl/apthogen'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vhalholl/vim-apthogen

Ⅳ. 文档说明

#vim-apthogen
Easily manage your vim's plugins

  • Like apt for dpkg, vim-apthogen is a frontend to vim-pathogen

img

Installation :

Backup your initial vim configuration :

mv ~/.vim .vim-$(date +%Y%m%d)
mv ~/.vimrc .vimrc-$(date +%Y%m%d)

Create new directory and execute netinstall script via curl :

mkdir ~/.vimnew && cd  $_ && curl -sL https://git.io/vVQ2x |bash

This will output something like this :

Apthogen::Incubate
Apthogen::Infection
Apthogen::Propagate::required
Apthogen::Phagocyte::https://github.com/tpope/vim-pathogen
[...]

You can import more modules after installation like this :

./netinstall

This will output the module import menu :

[S]lim               (Only Required Modules)     
[M]inimal            (Default)
[H]ighly Recomended  
[R]ecomended          
[W]hynot             
[A]ll                (Not Recomended For Testing Purpose)
[C]ancel
Enter your choice and press [Enter]:   R

Test it :

vim -u ~/.vimnew/.vimrc
:scriptnames

Link new installation :

ln -s ~/.vimnew ~/.vim
ln -s ~/.vimnew/.vimrc ~/.vimrc

Manage plugins

You can manage plugins easily w/ apthogen script :

./apthogen 
Usage : ./aptogen {install|remove|enable|disable|update|upgrade|list|search|show}

Add

Add new plugin in list of availlable plugins and download it into bundle-availlable

./aptogen add <url_of_git_repository>

Install

Install plugin from plugins list into bundle-availlable

./aptogen install <module_name>

Remove

Disable plugin and remove it from bundle-availlable

./aptogen remove <module_name>

Enable

Link module from bundle-avallable to bundle to activate it

./aptogen enable <module_name>

Disable

Unlink module from bundle to deactivate it

./aptogen disable <module_name>

Update

Update module list w/ module or all availlable modules

./apthogen update <module_name>

Upgrade

Update module or all availlable modules from github

./apthogen enable <module_name>

List

List all indexed modules

./apthogen list

Search

Search a pattern in module list

./apthogen search <pattern>

Show

Show informations about modules, act like 'apthogen help' if no argument

./apthogen show <pattern|module_name|url_git_repository>

Help

This page

./apthogen help

Import

Install and enable modules from modules list (used for installation purpose)

./module import

List of vim modules used w/ netinstall :

Required :

Minimal

Highly Recomended :

Ensure Minimal Modules are installed

Recomended :

Ensure Highly Recomended Modules are installed

Why Not ?

Ensure Recomended Modules are installed

添加新评论