File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- *fold.txt* For Vim バージョン 8.0 . Last change: 2016 Jan 02
1
+ *fold.txt* For Vim バージョン 8.1 . Last change: 2017 Mar 18
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
Original file line number Diff line number Diff line change 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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -79,7 +79,7 @@ This will call a function to compute the fold level: >
79
79
:set foldexpr=MyFoldLevel(v:lnum)
80
80
This will make a fold out of paragraphs separated by blank lines: >
81
81
:set foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1
82
- this does the same: >
82
+ This does the same: >
83
83
:set foldexpr=getline(v:lnum-1)=~'^\\s*$'&&getline(v:lnum)=~'\\S'?'>1':1
84
84
85
85
Note that backslashes must be used to escape characters that ":set" handles
@@ -203,7 +203,7 @@ and the level given by the marker:
203
203
1. If a marker with the same fold level is encountered, the previous fold
204
204
ends and another fold with the same level starts.
205
205
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
207
207
this level end and a fold with the specified level starts.
208
208
209
209
The number indicates the fold level. A zero cannot be used (a marker with
You can’t perform that action at this time.
0 commit comments