Vim Recall繁體中文

Move to the end of the previous fold

zk

Example

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

Move to the end of the previous fold.

Folds

Line 2 · level 1
closed · lines 2–3
Line 3 · level 1
closed · lines 2–3
Line 5 · level 1
closed · lines 5–6
Line 6 · level 1
closed · lines 5–6

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 7, column 1

Folds

Line 2 · level 1
closed · lines 2–3
Line 3 · level 1
closed · lines 2–3
Line 5 · level 1
closed · lines 5–6
Line 6 · level 1
closed · lines 5–6

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 6, column 1

Folds

Line 2 · level 1
closed · lines 2–3
Line 3 · level 1
closed · lines 2–3
Line 5 · level 1
closed · lines 5–6
Line 6 · level 1 Active
closed · lines 5–6

Option · foldenable

Local foldenable
1
Global foldenable
1

Option · foldlevel

Local foldlevel
0
Global foldlevel
0

Start in Normal mode. Manual folds span lines 2–3 and 5–6 as separate ranges. The panel distinguishes fold membership from whether the fold is closed.

Details & Vim help

Example replayed in Vim

Move to the end of the previous fold. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.