summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-01-22 19:14:02 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-01-22 19:14:02 +0000
commit9c0d4a72037a39b55e3655fe1893f2a29c684fd4 (patch)
tree3ee6ae7644d8926a0c7249d4d970fb85ede568c9 /app-editors/vim
parentStable on alpha. (diff)
downloadgentoo-2-9c0d4a72037a39b55e3655fe1893f2a29c684fd4.tar.gz
gentoo-2-9c0d4a72037a39b55e3655fe1893f2a29c684fd4.tar.bz2
gentoo-2-9c0d4a72037a39b55e3655fe1893f2a29c684fd4.zip
Add bash-completion script. For now this is vim-7 only. If it seems to work well, it'll be included in a later vim-6 revision.
(Portage version: 2.0.51-r14)
Diffstat (limited to 'app-editors/vim')
-rw-r--r--app-editors/vim/ChangeLog6
-rw-r--r--app-editors/vim/Manifest11
-rw-r--r--app-editors/vim/files/vim-completion36
3 files changed, 42 insertions, 11 deletions
diff --git a/app-editors/vim/ChangeLog b/app-editors/vim/ChangeLog
index d373376feb00..833397432b19 100644
--- a/app-editors/vim/ChangeLog
+++ b/app-editors/vim/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-editors/vim
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.143 2005/01/21 22:29:57 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.144 2005/01/22 19:11:38 ciaranm Exp $
+
+ 22 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> +files/vim-completion:
+ Add bash-completion script. For now this is vim-7 only. If it seems to work
+ well, it'll be included in a later vim-6 revision.
*vim-6.3-r4 (21 Jan 2005)
diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest
index 0d7043000395..ef5d12d0b8b6 100644
--- a/app-editors/vim/Manifest
+++ b/app-editors/vim/Manifest
@@ -1,19 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 f04baac262fa53e83101d693a703a2fa vim-6.3-r2.ebuild 825
MD5 bb96cbd368150263c44a05688387cce7 ChangeLog 20741
MD5 f7dfec7ef4219c6cb8cf1177865f0e61 vim-6.3-r4.ebuild 835
MD5 b1012e68b416472ccde229fe8f278482 vim-7.0_alpha20050113.ebuild 814
MD5 f3583430b2f7b0686cafd606b08bf203 metadata.xml 156
+MD5 bbd2459b227910017b5ef6d81c32590f files/vim-completion 985
MD5 b9203f742a2fb575ca24d486e177a9dc files/digest-vim-6.3-r4 274
MD5 48e706214652b216c21280e50511627d files/vimrc 3004
MD5 461a5fdc06cac13bb9c7d9c869d68e2e files/digest-vim-6.3-r2 274
MD5 0559e12807c0742ed95a93dc0d9dc7fb files/digest-vim-7.0_alpha20050113 156
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFB8YJ+LLFUmVNQ7rkRAgSjAKCYgcwYxLy4/3uSwTgsM9Ku6k/GDwCeOJmk
-gceiUt64+lamfMcF7+eOSZ0=
-=EZp3
------END PGP SIGNATURE-----
diff --git a/app-editors/vim/files/vim-completion b/app-editors/vim/files/vim-completion
new file mode 100644
index 000000000000..2df182af6158
--- /dev/null
+++ b/app-editors/vim/files/vim-completion
@@ -0,0 +1,36 @@
+# Author: Ciaran McCreesh <ciaranm@gentoo.org>
+#
+# completion for vim
+
+_vim()
+{
+ local cur prev cmd args
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+ cmd=${COMP_WORDS[0]}
+
+ if [[ "${prev}" == "--servername" ]] ; then
+ local servers
+ servers=$(gvim --serverlist )
+ COMPREPLY=( $( compgen -W "${servers}" -- $cur ) )
+
+ elif [[ "${prev}" == -[uUi] ]] ; then
+ COMPREPLY=( $( compgen -W "NONE" ) \
+ $( compgen -f -X "!*vim*" -- "$cur" ) )
+
+ elif [[ "${cur}" == -* ]] ; then
+ args='-t -q -c -S --cmd -A -b -C -d -D -e -E -f --nofork \
+ -F -g -h -H -i -L -l -m -M -N -n -nb -o -R -r -s \
+ -T -u -U -V -v -w -W -x -X -y -Y -Z --echo-wid \
+ --help --literal --noplugin --version'
+ COMPREPLY=( $( compgen -W "${args}" -- $cur ) )
+ else
+ _filedir
+ fi
+}
+
+complete -F _vim vim ex view evim rvim rview
+
+# vim: set ft=sh sw=4 et sts=4 :