diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-01-22 19:43:57 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-01-22 19:43:57 +0000 |
commit | 3e95d366cadfa550d48bbcc32c2032c27702d2b0 (patch) | |
tree | 52c63fe3f934ce8dbdf33a5bf49281e174a89751 /app-editors | |
parent | Add kdebluetooth masked ebuilds that enables the irmcsynckonnector because it... (diff) | |
download | gentoo-2-3e95d366cadfa550d48bbcc32c2032c27702d2b0.tar.gz gentoo-2-3e95d366cadfa550d48bbcc32c2032c27702d2b0.tar.bz2 gentoo-2-3e95d366cadfa550d48bbcc32c2032c27702d2b0.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')
-rw-r--r-- | app-editors/vim-core/ChangeLog | 6 | ||||
-rw-r--r-- | app-editors/vim-core/files/xxd-completion | 25 |
2 files changed, 30 insertions, 1 deletions
diff --git a/app-editors/vim-core/ChangeLog b/app-editors/vim-core/ChangeLog index 8131d2a4cea5..6c17a6be27d5 100644 --- a/app-editors/vim-core/ChangeLog +++ b/app-editors/vim-core/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-editors/vim-core # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.127 2005/01/21 22:26:53 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.128 2005/01/22 19:43:57 ciaranm Exp $ + + 22 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> +files/xxd-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-core-6.3-r4 (21 Jan 2005) diff --git a/app-editors/vim-core/files/xxd-completion b/app-editors/vim-core/files/xxd-completion new file mode 100644 index 000000000000..174a4093f39f --- /dev/null +++ b/app-editors/vim-core/files/xxd-completion @@ -0,0 +1,25 @@ +# Author: Ciaran McCreesh <ciaranm@gentoo.org> +# +# completion for xxd + +_xxd() +{ + local cur prev cmd args + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + cmd=${COMP_WORDS[0]} + + if [[ "${cur}" == -* ]] ; then + args='-a -b -c -E -g -h -i -l -ps -r -s -u -v' + COMPREPLY=( $( compgen -W "${args}" -- $cur ) ) + else + _filedir + fi +} + +complete -F _xxd xxd + +# vim: set ft=sh sw=4 et sts=4 : + |