Ignore vim swap files
Fix botched reformat
Convert old-style definitions to prototypes.

Encompassing the core code, plus the TTY and Curses frontends and the Unix
specific code.
Fix printf format errors.
Fix some warnings about pointer types