Is it possible to process grep's result before sending to quickfix?
I want to generate the outline of latex documents.
Currently, I use the following command
:vimgrep /^[\s]*\\\(sub\)*section{\\|^[\s]*\\caption{/ %

and get results like this

\section{Introduction}
\section{Background and Problem Formulation}
\caption{Concept of distributed beamforming. The chosen nodes form a
\section{Proposed Technique:\\ Phase Partition Method}
\subsection{A Suboptimal Subset of Nodes}
\caption{Normalized power as function of relative phase difference
\subsection{Dividing the Available Sensor Nodes in Suboptimal
\subsubsection{Test1}
\subsubsection{Test2}
\caption{Sensor distribution as a function of phase. The Phase
\section{Simulation Results}
\subsection{Proof of concept}
\caption{Proof of concept. $M=100, \rho=1 \lambda.\ \overline D_{max}
=
\subsection{Effect of Distribution Radius}
\caption{Effect of distribution radius.}
\subsection{Effect of number of sensors}
\caption{Effect of number of sensors.}
\subsection{Effect of phase uncertainty}
\caption{Effect of phase uncertainty. $M=1000$, $\rho=100 \lambda$.
All
\section{Discussion and Future Work}
\section{Conclusion}


Now, I want to clean out \section{}, \subsection{}, \subsubsection{},
and \caption{} and make it hierarchy, like

Introduction
Background and Problem Formulation
        Fig: Concept of distributed beamforming. The chosen nodes form
a
Proposed Technique:\\ Phase Partition Method
        A Suboptimal Subset of Nodes
        Fig: Normalized power as function of relative phase difference
        Dividing the Available Sensor Nodes in Suboptimal
                Test1
                Test2

I know this can be done by several replace commands. But is it
possible to process grep's result before sending to quickfix?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to