Vim in dtach does not show file contents and statusline
Brought to you by:
crigler
When launching vim from zsh that is inside dtach, file contents and statusline is not shown until I enter some command that moves cursor or causes screen update. This happens almost any time I launch vim, but not every time, so there is probably a race condition somewhere. dtach-0.8, vim-7.3.102, Gentoo amd64.
Workaround: echo 'autocmd VimEnter * redraw!' >> ~/.vimrc. Cursor position is still not displayed until cursor is moved.
I cannot reproduce this reliably, though sometimes vim does not display anything on startup even when not running under dtach. I don't know why running under dtach would change anything.