added ctrl-g and visual paragrpah mode support