Am 24.04.2012 23:11, schrieb esquifit:
> According to the help (:he :ilist)
> :il /foo/
> would find all occurrences of the string 'foo' while
> :il foo
> would find all occurrences of the pattern \<foo\>, that is, 'foo' as a
> whole word.
>
> I've found that when the pattern is a number this is no longer the case:
> :il /20/
> finds all occurrences of the string '20' as expected, but
> :il 20
> gives an "E389 Couldn't find the pattern" even if '20' does occur as a
> whole word. In fact,
> :il /\<20\>/
> effectively finds all occurrences of '20' as a whole word.
>
> Is this a bug or am I missing something?
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.
--
Andy
--
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
Wednesday, April 25, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment