Add GIT_EDITOR and VISUAL variables for vim.
Detect solaris.
Use similar changes for OS X on Solaris.