diff options
author | codex <aurelien@hackers.camp> | 2014-12-11 08:01:18 +0100 |
---|---|---|
committer | codex <aurelien@hackers.camp> | 2014-12-11 08:01:18 +0100 |
commit | 48dc6f9b6ee1fdd710876986e8f2ea5e40e3b478 (patch) | |
tree | be0b45a9531cab2713b2b4e4b26d2e8b012484ce /pcr/vim-pydiction | |
parent | 68c8092e1b31adcfdbccb62f7023f3b90758ef0a (diff) |
Allows you to auto-complete your Python code
Diffstat (limited to 'pcr/vim-pydiction')
-rw-r--r-- | pcr/vim-pydiction/PKGBUILD | 28 | ||||
-rw-r--r-- | pcr/vim-pydiction/pydiction.install | 13 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pcr/vim-pydiction/PKGBUILD b/pcr/vim-pydiction/PKGBUILD new file mode 100644 index 000000000..f2cfa4ada --- /dev/null +++ b/pcr/vim-pydiction/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp> +# Contributor: Alireza Savand <alireza.savand@gmail.com> +# Contributor: lemanyk <lemanyk@gmail.com> +# Contributor: Florian Friesdorf <archlinux@chaoflow.net> +# Contributor: Laszlo Papp <djszapi @ gmail at com> + +pkgname=vim-pydiction +pkgver=1.2.3 +_scriptid=21842 +pkgrel=2 +pkgdesc="Allows you to auto-complete your Python code" +arch=('any') +url="http://www.vim.org/scripts/script.php?script_id=850" +license=('BSD') +groups=('vim-plugins') +depends=('vim' 'python2') +install='pydiction.install' +source=(${pkgname}.zip::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}) + +package() { + cd ${srcdir}/pydiction + + install -Dm755 pydiction.py ${pkgdir}/usr/bin/pydiction.py + install -Dm644 complete-dict ${pkgdir}/usr/share/pydiction/complete-dict + install -Dm644 after/ftplugin/python_pydiction.vim ${pkgdir}/usr/share/vim/vimfiles/ftplugin/python_pydiction.vim + install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.txt +} + diff --git a/pcr/vim-pydiction/pydiction.install b/pcr/vim-pydiction/pydiction.install new file mode 100644 index 000000000..d55731df2 --- /dev/null +++ b/pcr/vim-pydiction/pydiction.install @@ -0,0 +1,13 @@ +post_install() { + echo " Add to your .vimrc file:" + echo "filetype plugin on" + echo "let g:pydiction_location='/usr/share/pydiction/complete-dict'" +} + +post_upgrade() { + echo " Add to your .vimrc file:" + echo "filetype plugin on" + echo "let g:pydiction_location='/usr/share/pydiction/complete-dict'" +} + +# vim:set ts=2 sw=2 et: |