On 2016-08-20 16:37:08 +0000, Bram Moolenaar said:

Patch 7.4.2231
Problem:    ":oldfiles" output is a very long list.
Solution:   Add a pattern argument. (Coot, closes #575)

Upon reading the manual, I was (naively) thinking that it is not
necessary to enclose the pattern between delimiters unless the
pattern contains a bar. In fact, if I try something like:

   :oldfiles cpp$

it works as expected.

However, when I try

   :oldfiles ^vim

or

   :oldfiles .cpp

I get

   E682: Invalid search pattern or delimiter

I guess that if the first character is a non-ID character, it is
always interpreted as a pattern delimiter.

Two things:

1. Maybe the help could be made clearer by explicitly saying that
 "Without the enclosing character the pattern cannot include the bar
  character *and it cannot start with a non-ID character*.

2. The asymmetry between xxx$ and ^xxx is a bit counterintuitive:
  wouldn't it be better to assume that the first character is a
  pattern delimiter if it is a non-ID *and* it is equal to the last
  character?

Nicola


--
--
You received this message from the "vim_dev" 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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui