fixed beginning-of-file blocks and hackishly throw in escapes to avoid the insert mode error