O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Screen

Screen is tmux's spiritual predecessor, but it's still used by many today. Screen is not as extensible as tmux, and in fact Vim doesn't play that nicely with Screen out of the box. However, if you're used to Screen and don't want to change your existing workflow, there are a few tweaks you can make to your setup to make the two get along a little nicer.

The Esc key doesn't register correctly in Vim when running through Screen. You might want to add the following to your ~/.screenrc file to fix the Esc key behavior:

# Wait no more than 5 milliseconds when detecting an input# sequence, fixes Esc behavior in Vim.maptimeout 5

Screen also sets the $TERM variable to screen, which Vim does not recognize. Update .screenrc to include the following: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required