New life from now
28 April, 2010
Counting occurrences of a pattern
Use the
:s
substitute command with the
n
flag (counts number of hits; no changes occur) to count the number of occurrences of a pattern. For example:
:%s/pattern//gn
06 April, 2010
工作开始
能力越大,责任越大。
不用害怕,挑战自己。
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)