Wednesday, April 25, 2012

RE: :il[ist] with numeric patterns

Andy Wokula wrote:
> Many `:[range]' commands accept an optional count as the
> first argument, apparently this is true for :ilist also:
>
> :il 3 20
>
> finds `20' in the text. Not sure if the count has any purpose.

Thanks, I was going to propose :ilist to the OP but did not when
I could not get it to work.

A quick test shows you need a bang to get all numbers, including
those in comments as documented.

In a new buffer (':new') with these three lines:
123
> 123
let s = '123'

using ':ilist 1 123' shows only lines 1 and 3, while
':ilist! 1 123' shows all three lines.

John

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

No comments: