It's documented in some Berkeley manuals, so you may want to pick them up to get info on other commands you may not have in your documents. Incidentally, it does not work like general commands. For example, you cannot say "~w" to make the word upper/lower case. Most other standard commands folloow the command-movement convention.