On Thu, Jun 10, 2010 at 6:06 PM, Yosi Izaq <[email protected]> wrote: > Hi, > > I'm familiar with the %s/patt//n "trick" to count the # of patterns in > the file. I would like to ask how to count the # of paragraphs in a > file. > My question has 2 flavors: > 1. Count free text paragraphs separated by empty lines > 2. Count structured paragraphs that have a prefix and suffix > delimiters, such as > [ > l1 > l2 > l3 > ] > > [ > l4 > l5 > ] > > I tried search as follows: /[\_p\{-}\] > and it matches well, however the search I tried didn't match: %s/[\_p\ > {-}\]/n > > I'm obviously doing something wrong and would appreciate pointers how > to do it right. > > TIA, > Yosi
No replies... Makes me wonder, is the question unclear?- Considered trivial?- Difficult?- or never reached the alias??? Well, I'll try good old error and trial & :h in search of the answer. Thanks, Yosi -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
