[Vim-latex-devel] Re: "TVO like" outline folding
Brought to you by:
srinathava,
tmaas
From: Aditya M. <adi...@al...> - 2004-10-19 01:27:45
|
Hi, Sometime back there was a request by Peter Gasparovic to have TVO like outline folding in latex-suite. I have deleted that message from my inbox and the list archives are only read-only. Therefore I am starting a new thread. Quoting from that mail >I want to ask developers - could it be possible to add functionality > of TheVimOutliner plugin to latex-suite? > (http://www.vim.org/scripts/script.php?script_id=517) > - it works (and looks) like outliner in MS Word. I mean the way it > shows outline of section structure. Unfortunately TVO is based > on <TAB> indenting and is unable to understand latex-structured files. > > For an explanation, > --------------------------------------- > "TVO like" folding would work this way: > > section > --------text in section > --subsection > --------text in subsection > ----subsubsection > --------text in subsubsection > > > I found that gvim is principally capable of this (skip fold levels), > but I am not able to adapt folding.vim in latex-suite. > One method to do this is to use manual folding and %>>> to end the section fold. Suppose you have something like \section{Section 1} blah blah blah . . %>>> NOTICE THE MANUAL FOLD MARKER \subsection{subsection} blah blah blah . . then it will be folded like +--\section{Section 1}------------------ %>>> NOTICE THE MANUAL FOLD MARKER +--\subsection{Subsection 2} Not entirely what you wanted, the fold marker is visible, the folding depth for subsections is not there and you have to do it manually. But may be acceptable for most situations. HTH, Aditya |