[WIP] Move defines phase2

Move more defines from vim.h to header/source files.