> :'a,'bs/^// will count the lines between two markers a and b
> but is there any more elegant way, one that is not seen as an
> edit?
I would be inclined to just add 'n' to count the hits (does not
attempt to change the buffer):
:'a,'bs/^//n
However, you could fiddle with things like:
:echo line("'b") - line("'a") + 1
John
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment