... | ... |
@@ -2,10 +2,39 @@ |
2 | 2 |
|
3 | 3 |
A [Vim][] [plugin][] for unobtrusive [folds][]. |
4 | 4 |
|
5 |
+This plugin provides an improved mix of [`'foldmethod'`][] [`marker`][] and |
|
6 |
+[`indent`][] (implemented with [`expr`][]), with markers that blend well with |
|
7 |
+the [`'filetype'`][] (based on [`'commentstring'`][] or e.g. markup headings) |
|
8 |
+and optional nested indented paragraph folds. It ends folds automatically when |
|
9 |
+indentation drops and allocates empty lines to folds in such a way that it is |
|
10 |
+easy to identify folds of different levels (creating a nice table of content |
|
11 |
+when almost all folds are closed), without explicit end markers. |
|
12 |
+ |
|
13 |
+Also provided is a [`'foldtext'`][] function and a command to debug |
|
14 |
+[`'foldexpr'`][]s. |
|
15 |
+ |
|
5 | 16 |
[`vim-unobtrusive-fold`]: https://git.rcrnstn.net/rcrnstn/vim-unobtrusive-fold |
6 | 17 |
[Vim]: https://en.wikipedia.org/wiki/Vim_(text_editor) |
7 | 18 |
[plugin]: https://vimhelp.org/usr_05.txt.html#plugin |
8 | 19 |
[folds]: https://vimhelp.org/folds.txt.html#folds |
20 |
+[`'foldmethod'`]: https://vimhelp.org/options.txt.html#%27foldmethod%27 |
|
21 |
+[`marker`]: https://vimhelp.org/fold.txt.html#fold-marker |
|
22 |
+[`indent`]: https://vimhelp.org/fold.txt.html#fold-indent |
|
23 |
+[`expr`]: https://vimhelp.org/fold.txt.html#fold-expr |
|
24 |
+[`'filetype'`]: https://vimhelp.org/options.txt.html#%27filetype%27 |
|
25 |
+[`'commentstring'`]: https://vimhelp.org/options.txt.html#%27commentstring%27 |
|
26 |
+[`'foldtext'`]: https://vimhelp.org/options.txt.html#%27foldtext%27 |
|
27 |
+[`'foldexpr'`]: https://vimhelp.org/options.txt.html#%27foldexpr%27 |
|
28 |
+ |
|
29 |
+## Usage |
|
30 |
+ |
|
31 |
+See the [documentation](doc/unobtrusive-fold.txt) for details about usage. |
|
32 |
+ |
|
33 |
+## Demo |
|
34 |
+ |
|
35 |
+![vimrc](doc/demo-vimrc.svg) |
|
36 |
+ |
|
37 |
+![yaml](doc/demo-yaml.svg) |
|
9 | 38 |
|
10 | 39 |
## License |
11 | 40 |
|
... | ... |
@@ -6,3 +6,11 @@ A [Vim][] [plugin][] for unobtrusive [folds][]. |
6 | 6 |
[Vim]: https://en.wikipedia.org/wiki/Vim_(text_editor) |
7 | 7 |
[plugin]: https://vimhelp.org/usr_05.txt.html#plugin |
8 | 8 |
[folds]: https://vimhelp.org/folds.txt.html#folds |
9 |
+ |
|
10 |
+## License |
|
11 |
+ |
|
12 |
+Licensed under the [ISC License][] unless otherwise noted, see the |
|
13 |
+[`LICENSE`][] file. |
|
14 |
+ |
|
15 |
+[ISC License]: https://choosealicense.com/licenses/isc/ |
|
16 |
+[`LICENSE`]: LICENSE |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,8 @@ |
1 |
+# [`vim-unobtrusive-fold`][] |
|
2 |
+ |
|
3 |
+A [Vim][] [plugin][] for unobtrusive [folds][]. |
|
4 |
+ |
|
5 |
+[`vim-unobtrusive-fold`]: https://git.rcrnstn.net/rcrnstn/vim-unobtrusive-fold |
|
6 |
+[Vim]: https://en.wikipedia.org/wiki/Vim_(text_editor) |
|
7 |
+[plugin]: https://vimhelp.org/usr_05.txt.html#plugin |
|
8 |
+[folds]: https://vimhelp.org/folds.txt.html#folds |