Philip Mutua
Philip Mutua

Reputation: 6871

How do I minimize code view in vim after switching to insert mode

An opened .py file in minimized view.

enter image description here

After navigating to a class and switching to **insert mode**

If I want to view the code details I just navigate to the method or class I want and switch to insert Mode as shown below. enter image description here

How do I do I minimize back the code view? I am using vim's Python-mode plug in.

Upvotes: 0

Views: 605

Answers (2)

diraol
diraol

Reputation: 21

you can use z+<> shortcuts:

  • z+o to open a folding
  • z+c to close a folding
  • z+O to open all foldings [from current selection if I'm not wrong]
  • z+C to close all foldings [from current selection if I'm not wrong]

Upvotes: 2

Parker E.
Parker E.

Reputation: 90

You could use za, which folds/unfolds a fold.

Upvotes: 1

Related Questions