diff options
author | 4ur3l13n <aurelien@hackers.camp> | 2015-11-08 15:23:56 +0100 |
---|---|---|
committer | 4ur3l13n <aurelien@hackers.camp> | 2015-11-08 15:23:56 +0100 |
commit | 8a821aab1f810eb73732cf26060a5ba6b0c7e996 (patch) | |
tree | f8806c28c5563852e48fc6231b3de1900b84d81f /pcr/vundle-git | |
parent | 2defaad5c92e115337e1779756dd2669c24e6d74 (diff) | |
download | abslibre-8a821aab1f810eb73732cf26060a5ba6b0c7e996.tar.gz abslibre-8a821aab1f810eb73732cf26060a5ba6b0c7e996.tar.bz2 abslibre-8a821aab1f810eb73732cf26060a5ba6b0c7e996.zip |
vundle-git plugin manager for vim
Diffstat (limited to 'pcr/vundle-git')
-rw-r--r-- | pcr/vundle-git/PKGBUILD | 39 | ||||
-rw-r--r-- | pcr/vundle-git/vundle.install | 27 | ||||
-rw-r--r-- | pcr/vundle-git/vundle.vimrc | 29 |
3 files changed, 95 insertions, 0 deletions
diff --git a/pcr/vundle-git/PKGBUILD b/pcr/vundle-git/PKGBUILD new file mode 100644 index 000000000..de7692b98 --- /dev/null +++ b/pcr/vundle-git/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp> +# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net> +# Contributor: Fat Cat <carlos dot manuel250 at gmail dot com> + +pkgname=vundle-git +pkgver=0.10.2.594.5f70ae6 +pkgrel=1 +pkgdesc="Plug-in manager for Vim" +url="https://github.com/gmarik/Vundle.vim" +arch=('any') +license=('MIT') +depends=('vim>=7.0') +makedepends=('git') +provides=('vundle') +conflicts=('vundle') +install=vundle.install +source=(${pkgname}::git+https://github.com/gmarik/Vundle.vim + vundle.vimrc) + +pkgver() { + cd ${pkgname} + printf "%s.%s.%s" "$(git describe --tags --abbrev=0|sed 's/^v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd ${pkgname} + + vimpath="${pkgdir}/usr/share/vim/vimfiles" + mkdir -p ${vimpath}/doc + cp -R doc ${vimpath} + mkdir -p ${vimpath}/autoload + cp -R autoload ${vimpath} + + install -Dm 644 "${srcdir}"/vundle.vimrc "${pkgdir}/usr/share/vundle/vimrc.sample" + install -Dm 644 LICENSE-MIT.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README" +} + +# vim: ts=2 sw=2 et: diff --git a/pcr/vundle-git/vundle.install b/pcr/vundle-git/vundle.install new file mode 100644 index 000000000..555151ccb --- /dev/null +++ b/pcr/vundle-git/vundle.install @@ -0,0 +1,27 @@ +post_install() { + echo -n "Updating vim help tags..." + /usr/bin/vim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1 + echo "done." + echo " + >>> To use vundle, please check the file /usr/share/vundle/vimrc.sample + >>> and update your ~/.vimrc file, accordingly + " +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + echo -n "Updating vim help tags..." + /usr/bin/vim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1 + echo "done." + echo " + >>> Please remember to remove vundle bundles from your ~/.vimrc file + >>> and from your ~/.vim directory! + " +} + +# vim: ts=2 sw=2 et: diff --git a/pcr/vundle-git/vundle.vimrc b/pcr/vundle-git/vundle.vimrc new file mode 100644 index 000000000..0e2e168e8 --- /dev/null +++ b/pcr/vundle-git/vundle.vimrc @@ -0,0 +1,29 @@ +set nocompatible " be iMproved +filetype off " required! + +call vundle#rc() + +" My Bundles here: +" +" original repos on github +" Bundle 'tpope/vim-fugitive' +" Bundle 'Lokaltog/vim-easymotion' +" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} +" Bundle 'tpope/vim-rails.git' +" vim-scripts repos +" Bundle 'L9' +" Bundle 'FuzzyFinder' +" non github repos +" Bundle 'git://git.wincent.com/command-t.git' +" ... + +filetype plugin indent on " required! +" +" Brief help +" :BundleList - list configured bundles +" :BundleInstall(!) - install(update) bundles +" :BundleSearch(!) foo - search(or refresh cache first) for foo +" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles +" +" see :h vundle for more details or wiki for FAQ +" NOTE: comments after Bundle command are not allowed.. |