The Computer Oracle

GNU Screen - Removing vim window after quit

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Gnu Screen - Removing Vim Window After Quit
00:38 Accepted Answer Score 19
01:15 Answer 2 Score 13
01:22 Thank you

--

Full question
https://superuser.com/questions/189051/g...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#vim #gnuscreen #urxvt

#avk47



ACCEPTED ANSWER

Score 19


Enable the altscreen option in ~/.screenrc.

Full-screen programs use a terminal feature called "alternate screen", which has a separate screen buffer and (often) minor behavior changes to adapt to such interfaces. The program enters the 'alternate' screen when started, and goes back to 'normal' when exiting.

Since Screen itself acts as a terminal emulator, it has to emulate the alt-screen feature as well. All other terminal emulators enable this feature by default, but Screen has it hidden behind the altscreen option for some historical reasons.




ANSWER 2

Score 13


Add this line to your ~/.screenrc:

altscreen on