Added some utility functions, mappings, and cleaned up the visual-modes code.