From owner-freebsd-questions@freebsd.org Tue Nov 1 11:41:18 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E11E5C29EF3 for ; Tue, 1 Nov 2016 11:41:18 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-yw0-x22b.google.com (mail-yw0-x22b.google.com [IPv6:2607:f8b0:4002:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9AEB11517 for ; Tue, 1 Nov 2016 11:41:18 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-yw0-x22b.google.com with SMTP id r204so62110554ywb.0 for ; Tue, 01 Nov 2016 04:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=04VyRpsIFpQjtatDn9+UuexbJHrhc6HJtsxQNv1JbcQ=; b=D6VugtzQD4vhJiTm2jyZyepEqTXT7dvfinwRWzQslrJIh24uwQO3kFuXEtussZYunj w3AbzR6YlZNyuV5IbVf7hS24myVEZHX7w7pIeNiBi7Z/321Db4N3TAKjFIPwXh+o35Fe 0MTFSCHeTtnKI0BXjjia3kgQmGBT4toOYkQrWHZFfYJ1R4RwmPBgYxbkEsfNiqE+/sfX 3xbWmBK5sUnBdNGMjpocbUomNEqywTk1fVWJn1C1C6jBjr1c4J3bsT/XeXVlpO5h6ECz FNjhoGq9uYNl+BNQNi5fPO34eueE9MoqpHXzkrF9ohjODiDiVD7Mbdxc67M69KplQE28 FCRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=04VyRpsIFpQjtatDn9+UuexbJHrhc6HJtsxQNv1JbcQ=; b=KebqneCciS6ZTUh0ctFfgGEurkjyQcm46isPV5rAjDJ7OcG4DdE6pNpzhTwt5Z0+2D v99zNxj7SQc2NEwV9taXWqTSziGOJpA4AS2/5xH+wYoMl4uo6mzdQI5q6KFyfqy67WkG e7ouNjr0Or6biszZWk5mOJ4g7N2EgAojigb0V/j70I2shI8x/xj0jvTFrFluCffim6/1 du5sXN8kaGzK8Mbt5KAb5fNM2Ff3949wAvHE89EQE/l4ESd/emQsNavt4YMNE1fMiM6u er1hMAIiG66Jdj9gVCA5hINJ3QutvXclID2zIN61uQkBKJN/F+Kgm9TEOFgd9f9y+PHm 7xiA== X-Gm-Message-State: ABUngvcEwFioU/dqIDXBmuEI29Tlv77bdqvKp5OXHfWgY3jjr7QBYZoxfAH8ajluYQmPBR4nPnuQ+P+PgAx+mw== X-Received: by 10.36.189.132 with SMTP id x126mr621804ite.71.1478000477663; Tue, 01 Nov 2016 04:41:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.67.196 with HTTP; Tue, 1 Nov 2016 04:41:17 -0700 (PDT) In-Reply-To: <201611011128.uA1BS6B4084045@mech-as222.men.bris.ac.uk> References: <201611011128.uA1BS6B4084045@mech-as222.men.bris.ac.uk> From: Ben Woods Date: Tue, 1 Nov 2016 19:41:17 +0800 Message-ID: Subject: Re: OT: Vim masks (hides) multiple lines with a comment To: "mexas@bris.ac.uk" Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2016 11:41:19 -0000 On 1 November 2016 at 19:28, Anton Shterenlikht wrote: > This is an OT question, on Vim in general. > (This is on linux, not FreeBSD, where there is no nvi, just Vim.) > > Sometimes Vim would mask some lines of text like this: > > 55 **!********************************************************* > ************** > 56 *DEPVAR, delete=15 > 57 +-- 19 lines: 18---------------------------- > ---------------------------------------------------- > 76 ** ALL ZERO initially, EXCEPT 15 > 77 *INITIAL CONDITIONS,TYpe=SOLUTION > 78 +-- 3 lines: ALL, 0, 0, 0, 0, 0, 0, 0----------------------------- > ----------------------------- > 81 ** > 82 ** >>>>> END OF USER MATERIAL PART <<<<<< > 83 ** > > I cannot find a setting or a command to > unblock the hidden lines. The only workaround > I know is to launch Vim as "ex -v". > > If I go into the edit mode on hidden lines, > then they are unmasked, but this is not an > acceptable workaround, as I don't want to > edit, just see and check. > > I searched online multiple times but cannot > see anything relevant. Maybe my search phrase > is not right. > > Please advise > > Thanks > > Anton > I think the search phrase you are looking for is code "folding". These should get you started: http://vim.wikia.com/wiki/Folding http://unix.stackexchange.com/questions/141097/how-to-enable-and-use-code-folding-in-vim Regards, Ben