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

465 Views Asked by At

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.

2

There are 2 best solutions below

1
Parker E. On BEST ANSWER

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

0
diraol On

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]