Skip to content

Commit 6c1bfd6

Browse files
committed
Update fold from Vim 8.0 to 8.1
1 parent 981c329 commit 6c1bfd6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/fold.jax

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*fold.txt* For Vim バージョン 8.0. Last change: 2016 Jan 02
1+
*fold.txt* For Vim バージョン 8.1. Last change: 2017 Mar 18
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar

en/fold.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*fold.txt* For Vim version 8.0. Last change: 2016 Jan 02
1+
*fold.txt* For Vim version 8.1. Last change: 2017 Mar 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -79,7 +79,7 @@ This will call a function to compute the fold level: >
7979
:set foldexpr=MyFoldLevel(v:lnum)
8080
This will make a fold out of paragraphs separated by blank lines: >
8181
:set foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1
82-
this does the same: >
82+
This does the same: >
8383
:set foldexpr=getline(v:lnum-1)=~'^\\s*$'&&getline(v:lnum)=~'\\S'?'>1':1
8484
8585
Note that backslashes must be used to escape characters that ":set" handles
@@ -203,7 +203,7 @@ and the level given by the marker:
203203
1. If a marker with the same fold level is encountered, the previous fold
204204
ends and another fold with the same level starts.
205205
2. If a marker with a higher fold level is found, a nested fold is started.
206-
3. if a marker with a lower fold level is found, all folds up to and including
206+
3. If a marker with a lower fold level is found, all folds up to and including
207207
this level end and a fold with the specified level starts.
208208

209209
The number indicates the fold level. A zero cannot be used (a marker with

0 commit comments

Comments
 (0)