How to disable folding in vim?

Solution In Progress - Updated -

Issue

  • How to disable folding in vim?

Sample text:

$ cat /tmp/test.inp
*
test
*
a
b
c
*
*

You can see a folded line using vim.

$ vim /tmp/test.inp
*
test
*
+--  3 lines: a------------------------------------------------------------
*
*

To view the text, open the fold by typing:

        zo

And you can close the fold again with:

        zc

Environment

  • Red Hat Enterprise Linux 6
  • vim-enhanced

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content