3 # to use zz with vim, write to your .vimrc:
5 # noremap <silent> zz> :w !zz<CR><CR>
6 # noremap <silent> zz< :r !zz<CR>
10 if [ "$*" = -h -o "$*" = --help ]; then
12 zz is the generic clip board program. See also the edit helper program ezz.
13 The clip board is \$ZZ (default: \$HOME/.zz). Options and modes are:
15 "zz" write \$ZZ to STDOUT
16 "zz file(s)" copy file(s) into \$ZZ
17 "zz -" write STDIN (keyboard, mouse buffer) to \$ZZ
18 "zz +" add STDIN (keyboard, mouse buffer) to \$ZZ
19 "... | zz" write STDIN from pipe to \$ZZ
20 "... | zz +" add STDIN from pipe to \$ZZ
21 "zz | ..." write \$ZZ to pipe
22 "zz .." write previous \$ZZ to STDOUT
34 Limitation: zz does not work across different accounts or hosts! Use xx instead.
40 exec cat -- "$@" >>$ZZ
46 elif [ "$1" = .. ]; then
49 test -f $ZZ && mv $ZZ $ZZ~
53 test -f $ZZ && mv $ZZ $ZZ~