[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vi -- Turn off Line Number Colors and Screen Buffering

On Tue, Nov 4, 2008 at 6:36 AM, Cameron Hutchison <lists@xdna.net> wrote:
> Sven Joachim <svenjoac@gmx.de> writes:
>>On 2008-11-04 06:28 +0100, Matt Miller wrote:
>>>> > Also, I don't want the editor to do whatever special screen buffer
>>>> > swapping, or whatever it is, that prevents me from scrolling back in
>>>> > my terminal history when the editor is open, and then clears away
>>>> > the screen and redisplays what was there before after the editor is
>>>> > closed.
>>> That's still an annoyance.  This whole take-over-the-screen-because-that-
>>> must-be-what-you-really-want thing has got be turn-offable.
>>This is a feature of your terminal (and ncurses).  Please consult your
>>terminal's manual how to turn the alternate screen off.  In xterm, you
>>need to set the `titeInhibit' resource to true.
> Alternatively, set TERM=vt100 as that terminal does not have the escape
> codes defined for this feature.

This behaviour can be specified in vim though, by adding the following to

set t_ti= t_te= "Don't use alternate screen
hi LineNr ctermfg=lightgray "Or whatever colour you want the line numbers to be

(Check the colour list at


Reply to: