A. S. Budden wrote:
Dear all,

When entering commands on the command line, I often use the completion
facility by pressing tab.  I have the wildmode set to longest:full.  I
have noticed a 'feature' that I find a little frustrating, however.  If
I type:

:help preser<TAB>

it offers me the choices:

:preserve 'preserveindent' 'nopreserveindent'

but doesn't complete the largest common part (preserve).  Similarly, if
I then type vei and press <TAB>, it presents me with the latter two
options but doesn't (as I would expect) complete to preserveindent.

Is this because of the quotes (due to it being a setting) or the 'no'
variation or is it because of something else?  Is there any way to get
round it?

Many thanks in advance,

Al


Try
        :set wildmode=longest:full,full

Note: In the case you mention, there is no common part: "preser[ve]" appears at a different point in each match. But with the above setting,

        :h 'ara

gets completed to

        :h 'arab

with the following menu of completions on the bottom statusline:

  'arab' 'arabic' 'arabicshape'

Notice that the common part is at the same position in all, and the command _does_ get completed to the longest common match.


Best regards,
Tony.

Reply via email to