Fix modelines used in tests, so Vim would parse them
doc: redact modeline section
Improve determineVimFileType: do not require "set", search backwards

 - "set " or "se " is not required with the (newer) modelines
 - prefer later entries in case of multiple settings, by using a new
   strrstr function
Simplify `strrstr` and `strstr`

Thanks @vhda.
Ref: https://github.com/fishman/ctags/pull/125#issuecomment-63169399
xcmd: include types.h and wait.h to use WEXITSTATUS and WIFEXITED

This fixes a bug reported by @kaushalmodi in #131.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Merge pull request #125 from blueyed/fix-vim-modelines

Fix vim modelines handling
vim: parse function bodies, e.g. for defined commands
vim: move isCommand into a function