How to change the color of cursor line in terminal session

13 views
Skip to first unread message

Sapfeer

unread,
Jul 9, 2009, 8:51:36 AM7/9/09
to Вим
Is it possible?.. I've tried to use :hi CursorLine gui* commands, but
they don't work... As I suppose, this group is for use in GUI only

Dennis Benzinger

unread,
Jul 9, 2009, 9:06:44 AM7/9/09
to vim...@googlegroups.com
Am 09.07.2009 14:51, Sapfeer schrieb:
> Is it possible?.. I've tried to use :hi CursorLine gui* commands, but
> they don't work... As I suppose, this group is for use in GUI only
> [...]

Yes, the gui* groups are for the GUI only. You need to set the ctermbg
group. For example:

hi CursorLine ctermbg=lightblue


HTH,
Dennis Benzinger

bill lam

unread,
Jul 9, 2009, 9:36:12 AM7/9/09
to vim...@googlegroups.com
you may add these 2 lines in ~/.vimrc,

set cursorline
hi CursorLine ctermbg=lightblue guibg=lightblue

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

Sapfeer

unread,
Jul 9, 2009, 9:41:38 AM7/9/09
to vim...@googlegroups.com
I've already done it! Thanks a lot!
--
Sent from my mobile device
Reply all
Reply to author
Forward
0 new messages