autocommand to present a reverse-indent outline file in its folded state
Introduction
A reverse-indent file often has many subheadings, so that it is unwieldly to navigate in its unfolded state. Generally one is obliged to fold it up using the :TWz command when it is first opened, just to get an over view of what the file contains. Now a new patch for your .vimrc file does this folding automatically for any .txt file beginning with several tab characters. The patch defines an autocommand for such files.
the patch
The standard .vimrc I have contains a definition of an autocmd group called vimrcEx. it ends with the command augroup END. I put my patch right after this augroup END command. Here it is
augroup END " (from existing .vimrc)
" TW 17Feb2013 folds up a .txt file with :TWz if it contains initial tabs
" ...bug: sometimes jumps to ".txt" instead of to last known cursor position.
autocmd TWz BufreadPost *.txt ks|call s:doTWz()|'s
:fun s:doTWz()
:go 1
:if search('^ ', "c", 1) "white space is 4 tab characters
: TWz
:endif
:endfun "doTWz