#!/bin/sh

g=
c=
r=

if test -t 1; then
  g="\e[1;30m"
  c="\e[1;34m"
  r="\e[0m"
fi

printf '%b\n' "${c}dap${r}  - ${g}delete around current paragraph${r}"
printf '%b\n' "${c}dip${r}  - ${g}delete current paragraph${r}"
printf '%b\n' "${c}diw${r}  - ${g}delete current word${r}"
printf '%b\n' "${c}daw${r}  - ${g}delete around current word${r}"
printf '%b\n' "${c}diW${r}  - ${g}delete current larger word (ex: --foo-bar)${r}"
printf '%b\n' "${c}daW${r}  - ${g}delete around current larger word${r}"
printf '%b\n' "${c}yap${r}  - ${g}yank around current paragraph${r}"
printf '%b\n' "${c}yip${r}  - ${g}yank current paragraph${r}"
printf '%b\n' "${c}ea ${r}  - ${g}append to current word${r}"
printf '%b\n' "${c}cw ${r}  - ${g}change to end of current word${r}"
printf '%b\n' "${c}ciw${r}  - ${g}change current word${r}"
printf '%b\n' "${c}caw${r}  - ${g}change around current word${r}"
printf '%b\n' "${c}dw ${r}  - ${g}delete to beginning of next word${r}"
printf '%b\n' "${c}daf${r}  - ${g}delete current function${r}"
printf '%b\n' "${c}yaf${r}  - ${g}yank current function${r}"
printf '%b\n' "${c}dif${r}  - ${g}delete current inner function${r}"
printf '%b\n' "${c}yif${r}  - ${g}yank current inner function${r}"
printf '%b\n' "${c}dd${r}   - ${g}delete the current line${r}"
printf '%b\n' "${c}gqip${r} - ${g}wrap the current paragraph${r}"
printf '%b\n' "${c}gqap${r} - ${g}wrap around the current paragraph${r}"
printf '%b\n' "${c}>ip${r}  - ${g}indent the current paragraph${r}"
printf '%b\n' "${c}<ip${r}  - ${g}dedent the current paragraph${r}"
printf '%b\n' "${c}!ip${r}  - ${g}send the current paragraph to shell command${r}"
