Vim Recall繁體中文

Create a fold for the count lines

zF

Example

Normal 0 / 1
outer start
  first
  second
  third
outer end
separator
last line
Cursor on line 2, column 1

Create a fold for the count lines.

Folds

Empty

Option · foldenable

Local foldenable
1
Global foldenable
1

Option · foldlevel

Local foldlevel
0
Global foldlevel
0
Before & after
Before
outer start
  first
  second
  third
outer end
separator
last line
Cursor on line 2, column 1

Folds

Empty

Option · foldenable

Local foldenable
1
Global foldenable
1

Option · foldlevel

Local foldlevel
0
Global foldlevel
0
After
outer start
  first
  second
  third
outer end
separator
last line
Cursor on line 2, column 1

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

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.