Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2012 19:51:41 -0400
From:      Thomas Dickey <dickey@radix.net>
To:        Peter Vereshagin <peter@vereshagin.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: termcap/terminfo magicians anyone? // colors in vim
Message-ID:  <20120530235141.GA102@saltmine.radix.net>
In-Reply-To: <20120530133327.GA26631@external.screwed.box>
References:  <20120530133327.GA26631@external.screwed.box>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, May 30, 2012 at 05:33:27PM +0400, Peter Vereshagin wrote:
> Hello.
> 
> Being new from linux back in time I tried vim. It had pretty colors in linux for me like that:
> 
> http://www.postimg.com/71000/photo-70938.jpg
> 
> But in freebsd I have what I have:
> 
> http://www.postimg.com/71000/photo-70939.jpg
> 
> It 'just works' for me if I 'vim -T linux' but:
> 
>     - I'd like to know exact reason to be fixed other than just 'use linux'
>     - It shows colors in ttyvX with TERM=cons25 but it has random '25h'
>       showing up in places when I implement the actions from the begin of
>       vimtutor.

If you tell vim that it's "linux" when it is really cons25, that confuses it. 
A "linux" console recognizes an particular escape sequence ending with "25h"
for making the cursor visible (ending with "25l" for invisible).  vim likes to
use that.  cons25 doesn't support it.

As noted in vim's manpage, the -T option should be used only if the
automatic way (setting $TERM correctly) doesn't work.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQFPxrKKtIqByHxlDocRAp/EAKCayT9IPZ8WPMnzGTfxHb4Hq73quACffvFf
HQvPD87LL8k1MaORjNv/HXw=
=/Kj3
-----END PGP SIGNATURE-----
help

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