Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jun 2023 12:00:16 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        questions@freebsd.org
Subject:   Re: totally OT: How to prevent Linux guest from clearing screen entering/leaving vim
Message-ID:  <20230603120016.803642b5e7d4c56b4725e7cc@sohara.org>
In-Reply-To: <CAGBxaX=MreN=jQMLhQj7-2vM89nkkb3wEAdfDBz2v_6wh7Fmjw@mail.gmail.com>
References:  <CAGBxaX=MreN=jQMLhQj7-2vM89nkkb3wEAdfDBz2v_6wh7Fmjw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 Jun 2023 06:40:21 -0400
Aryeh Friedman <aryeh.friedman@gmail.com> wrote:

> 1) The terminal clears (thus ruining any possibility of scrolling back
> to stuff I want to reference) when I enter and leave vi.... i.e.
> command line stuff is not visible inside vim and vim is not visible
> (with no amount of scrolling back) if I am in command line mode.. .
> this makes fixing compiler errors ***VERY*** annoying since I have an
> increased cognitive load from having to remember the line number and
> the error... It also make cutting and pasting next to impossible

	This one I also hate. and kn ow how to fix :) add this to
your .vimrc

:set t_te=

	That removes the escape sequence vim emits on close.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230603120016.803642b5e7d4c56b4725e7cc>