Menu

#8 Vim in dtach does not show file contents and statusline

open-works-for-me
dtach (8)
5
2011-04-24
2011-01-31
ZyX
No

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.

Discussion

  • Ned T. Crigler

    Ned T. Crigler - 2011-04-24

    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.

     
  • Ned T. Crigler

    Ned T. Crigler - 2011-04-24
    • status: open --> open-works-for-me
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.