Redraw Vim window in text mode

The Preview web-page breaks the vim window in text mode: need to redraw it every time with Ctrl+L. Add automatic redraw.
preview: update css and html to match github styles