Date: Tue, 1 Nov 2016 19:41:17 +0800 From: Ben Woods <woodsb02@gmail.com> To: "mexas@bris.ac.uk" <mexas@bris.ac.uk> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: OT: Vim masks (hides) multiple lines with a comment Message-ID: <CAOc73CBZUnkoeON5W_S2TNwGHZvFPomgyeGbS_zcfdaSRt=YWQ@mail.gmail.com> In-Reply-To: <201611011128.uA1BS6B4084045@mech-as222.men.bris.ac.uk> References: <201611011128.uA1BS6B4084045@mech-as222.men.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1 November 2016 at 19:28, Anton Shterenlikht <mexas@bris.ac.uk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CBZUnkoeON5W_S2TNwGHZvFPomgyeGbS_zcfdaSRt=YWQ>