4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Can't do command line completion for a specific file name
13 Solution: When the pattern ends in "$" don't add a star for completion and
14 remove the "$" before matching with file names.
15 Files: runtime/doc/cmdline.txt, src/ex_getln.c
18 *** ../vim-7.1.198/runtime/doc/cmdline.txt Sat May 12 15:38:39 2007
19 --- runtime/doc/cmdline.txt Fri Jan 4 15:13:06 2008
22 ! *cmdline.txt* For Vim version 7.1. Last change: 2006 Jul 18
25 VIM REFERENCE MANUAL by Bram Moolenaar
27 ! *cmdline.txt* For Vim version 7.1. Last change: 2008 Jan 04
30 VIM REFERENCE MANUAL by Bram Moolenaar
33 command-line is shown. (Note: the shifted arrow keys do not work on all
37 :his[tory] Print the history of last entered commands.
39 {not available when compiled without the |+cmdline_hist|
41 command-line is shown. (Note: the shifted arrow keys do not work on all
45 :his[tory] Print the history of last entered commands.
47 {not available when compiled without the |+cmdline_hist|
52 To completely ignore files with some extension use 'wildignore'.
54 + To match only files that end at the end of the typed text append a "$". For
55 + example, to match only files that end in ".c": >
57 + This will not match a file ending in ".cpp". Without the "$" it does match.
59 The old value of an option can be obtained by hitting 'wildchar' just after
60 the '='. For example, typing 'wildchar' after ":set dir=" will insert the
61 current value of 'dir'. This overrules file name completion for the options
62 *** ../vim-7.1.198/src/ex_getln.c Wed Jan 2 21:54:33 2008
63 --- src/ex_getln.c Fri Jan 4 15:05:31 2008
67 * ~ would be at the start of the file name, but not the tail.
68 * $ could be anywhere in the tail.
69 * ` could be anywhere in the file name.
70 + * When the name ends in '$' don't add a star, remove the '$'.
72 tail = gettail(retval);
73 if ((*retval != '~' || tail != retval)
77 && vim_strchr(tail, '$') == NULL
78 && vim_strchr(retval, '`') == NULL)
80 + else if (len > 0 && retval[len - 1] == '$')
85 *** ../vim-7.1.198/src/version.c Fri Jan 4 14:52:14 2008
86 --- src/version.c Fri Jan 4 15:14:29 2008
90 { /* Add new patch number below this line */
96 ARTHUR: Well, I can't just call you `Man'.
97 DENNIS: Well, you could say `Dennis'.
98 ARTHUR: Well, I didn't know you were called `Dennis.'
99 DENNIS: Well, you didn't bother to find out, did you?
100 The Quest for the Holy Grail (Monty Python)
102 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
103 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
104 \\\ download, build and distribute -- http://www.A-A-P.org ///
105 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///