Create a fold for the count lines
zF
Example
Normal 0 / 1Normal 1 / 1outer start
first
second
third
outer end
separator
last lineCursor on line 2, column 1outer start
first
second
third
outer end
separator
last lineCursor on line 2, column 1Create a fold for the count lines.
Folds
Option · foldenable
- Local foldenable
1- Global foldenable
1
Option · foldlevel
- Local foldlevel
0- Global foldlevel
0
Command applied
Folds
- Line 2 · level 1 Active
closed · lines 2–4- Line 3 · level 1
closed · lines 2–4- Line 4 · level 1
closed · lines 2–4
Option · foldenable
- Local foldenable
1- Global foldenable
1
Option · foldlevel
- Local foldlevel
0- Global foldlevel
0
Before & after
outer start
first
second
third
outer end
separator
last lineCursor on line 2, column 1Folds
Option · foldenable
- Local foldenable
1- Global foldenable
1
Option · foldlevel
- Local foldlevel
0- Global foldlevel
0
outer start
first
second
third
outer end
separator
last lineCursor on line 2, column 1Folds
- Line 2 · level 1 Active
closed · lines 2–4- Line 3 · level 1
closed · lines 2–4- Line 4 · level 1
closed · lines 2–4
Option · foldenable
- Local foldenable
1- Global foldenable
1
Option · foldlevel
- Local foldlevel
0- Global foldlevel
0
Start in Normal mode. Manual folding is enabled with no folds prepared before this command. The panel distinguishes fold membership from whether the fold is closed.
Details & Vim help
Example replayed in Vim
Create a fold for the count lines. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. Creating folds this way requires 'foldmethod' to be manual or marker.