Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

sgur/vim-paq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-paq

Ghq ベースの Vim プラグインローダーです。

Description

ghq で利用されるディレクトリ構造に基いて、プラグインをロードします。

Requirement

  • ghq (for installing/updating plugins)

Install

via ghq

  • command-line

    ghq get -u --shallow sgur/vim-paq
  • .vimrc

    source ~/Src/github.com/sgur/vim-paq/paq.vim

via git clone

  • command-line

    cd ~/.vim
    git clone https://github.com/sgur/vim-paq
  • .vimrc

    source ~/.vim/vim-paq/paq.vim

Detailed vimrc example

Usage

ghq の subcommand を利用する場合、.gitconfig に以下のエントリを追加してください。

[ghq "import"]
	vim = /path/to/vim-paq/import/vim.sh

(※ windows の場合、環境変数%PATH%sh.exeがあるパスを追加してください 例: c:/Program Files/Git/bin 等)

その後、以下のコマンドを実行します。

ghq import vim -u --shallow

git submodule を利用しているプラグインがある場合は、以下のように fetch.recurseSubmodules を有効にしておくと、submodule の更新も同時にしてくれるので便利です。

  • グローバルに設定する場合

    git config --global fetch.recurseSubmodules true
  • リポジトリ毎に設定する場合

    cd /path/to/repo
    git config --local fetch.recurseSubmodules true

License

MIT License

Author

sgur sgurrr@gmail.com

About

Ghq-based plugin Mapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published