From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 23:23:38 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 207A2394 for ; Fri, 5 Sep 2014 23:23:38 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.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 D80871E1A for ; Fri, 5 Sep 2014 23:23:37 +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 mx02.qsc.de (Postfix) with ESMTPS id 385F924D75 for ; Sat, 6 Sep 2014 01:23:28 +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 s85NNRZA002723 for ; Sat, 6 Sep 2014 01:23:27 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 6 Sep 2014 01:23:27 +0200 From: Polytropon To: FreeBSD Questions Subject: Column ruler (like line numbers) in vi / vim / gvim Message-Id: <20140906012327.3320bd39.freebsd@edvax.de> 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 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: Fri, 05 Sep 2014 23:23:38 -0000 There is _one_ feature that I didn't find in vi / vim / gvim, and especially in regards of column-oriented data files, this would be really helpful: a real COLUMN RULER on top. I have "set number" and "set ruler" already in ~/.vimrc, but this involves too much "eye travel". I'd like to quickly see column numbers (on top) like I can see line numbers (on the left). As a grown-old mainframe person, I'm thinking about something like this: |...+....1....+....2....+....3....+....4....+....5....+....6 Something that you would recognize from ISPF/PDF. It could also look like this, like in SEU: ....+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 Or even this: 1 2 3 4 5 6 ----+----0----+----0----+----0----+----0----+----0----+----0 The ruler should be located in the first line on top of the file, but not be part of the file. Is there a way to add this to gvim? Ideally it should accomodate to the "set nowrap" or "set wrap" setting (lines longer than the window width are either wrapped or scrolled horizontally). It should be shown on top of the current view (no matter how far you are into the file vertically). It should work similarly to the line numbers displayed on the left. Is it possible to achieve this without re-programming (g)vi(m) from scratch? :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...