From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 21:30:25 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB02A3E2 for ; Tue, 9 Sep 2014 21:30:25 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A66D0B2F for ; Tue, 9 Sep 2014 21:30:25 +0000 (UTC) Received: from r56.edvax.de (port-92-195-111-1.dynamic.qsc.de [92.195.111.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 0BB523CDC0; Tue, 9 Sep 2014 23:30:22 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s89LUMeI003180; Tue, 9 Sep 2014 23:30:22 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 9 Sep 2014 23:30:22 +0200 From: Polytropon To: Gary Kline Subject: Re: vim and cursor-over-"chars" question Message-Id: <20140909233022.e08acfee.freebsd@edvax.de> In-Reply-To: <20140909205225.GA10859@ethic.thought.org> References: <20140909205225.GA10859@ethic.thought.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 21:30:26 -0000 On Tue, 9 Sep 2014 13:52:26 -0700, Gary Kline wrote: > how do I change the color of the cursor from green of blue to > something lighter --can I have vim do it in orange? the > *original* vi showed matching parens and braces only. The cursor itself is controlled by the terminal emulator, for example xterm, rxvt, Konsole, or Gnome's equivalent. Shape, blink effect and color can be set with _that_ program. For example, the classic xterm cursor is a black block, but it can easily be a blinking underscore. The following example will open an xterm with black back- ground, grey text, and a flashing orange block cursor. % xterm -bg black -fg grey -cr orange +uc -bc -bcf 100 -bcn 100 See "man xterm" for details. Of course, this is for the classic xterm; other terminal programs are configured differently. > Anybody know what to tweak in ~/.vimrc, or am I stuck? What about "set showmatch"? Additionally, in vim you can set the color scheme that fits your needs. Set "syntax on" and then the scheme you find appealing, for example "colorscheme desert". To try different color schemes, I found it the easiest way to use gvim, select in the menu Edit -> Color Scheme, and then pin that menu to the desktop, so I can simply click all the entries and look at how they look like. The final setting is then set in the vim configuration file. The setting will then work for vim and gvim similarly. My gvim installation has those: blue, darkblue, default, delek, desert, efford, evening, koehler, morning, murphy, pablo, peachpuff, rin, shine, slate, torte, zellner. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...