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

-- 
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

Reply via email to