https://github.com/tomtom/indentfolds_vim
Indentation-level based folds with a twist
https://github.com/tomtom/indentfolds_vim
Last synced: 3 months ago
JSON representation
Indentation-level based folds with a twist
- Host: GitHub
- URL: https://github.com/tomtom/indentfolds_vim
- Owner: tomtom
- Created: 2011-10-21T15:14:10.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-10-20T14:38:31.000Z (over 12 years ago)
- Last Synced: 2025-10-13T14:38:54.449Z (8 months ago)
- Language: VimL
- Homepage: http://www.vim.org/scripts/script.php?script_id=3780
- Size: 105 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
When I write a longer text, I tend to use a top-down approach. I begin
with writing down the headings. I then outline each section. Next, I write
down keywords for each paragraph etc. At each step, I increase the
indentation level (multiples of 'shiftwidth', see also 'fold-indent').
This plugin help maintaining an overview of the document by setting a
paragraph's 'foldlevel' based on its indentation level -- see
|:Indentfolds|. Other than vim's own 'fold-indent' method, any
indentation level can be assigned as the top fold level. E.g. text with
a prefix of 16 whitespace characters can be defined as level 1, 8 and 24
whitespace characters would then be at level 2 etc. By setting foldlevel=1,
only text at that indentation level is displayed.
This plugin also provides a helper-command to comment out or delete all
lines at higher fold levels -- see |:IndentfoldsComment|.
Users can also use key maps (default: , ) to cycle through
indentation levels.
-----------------------------------------------------------------------
Status: Experimental
Install: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
See http://github.com/tomtom for related plugins.