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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.