1- *editing.txt* For Vim version 7.3. Last change: 2012 Apr 03
1+ *editing.txt* For Vim version 7.3. Last change: 2012 Jul 10
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -377,8 +377,9 @@ command that accepts more than one file name (like ":next file1 file2")
377377embedded spaces must be escaped with a backslash.
378378
379379 *wildcard* *wildcards*
380- Wildcards in {file} are expanded. Which wildcards are supported depends on
381- the system. These are the common ones:
380+ Wildcards in {file} are expanded, but as with file completion, 'wildignore'
381+ and 'suffixes' apply. Which wildcards are supported depends on the system.
382+ These are the common ones:
382383 ? matches one character
383384 * matches anything, including nothing
384385 ** matches anything, including nothing, recurses into directories
@@ -422,9 +423,11 @@ You can have the backticks expanded as a Vim expression, instead of an
422423external command, by using the syntax `= {expr }` e.g.: >
423424 :e `=tempname()`
424425 The expression can contain just about anything, thus this can also be used to
425- avoid the special meaning of '"', '|', '%' and '#'. Names are to be separated
426- with line breaks. When the result is a | List | then each item is used as a
427- name. Line breaks also separate names.
426+ avoid the special meaning of '"', '|', '%' and '#'. However, 'wildignore'
427+ does apply like to other wildcars.
428+ If the expression returns a string then names are to be separated with line
429+ breaks. When the result is a | List | then each item is used as a name. Line
430+ breaks also separate names.
428431
429432 *++opt* *[++opt]*
430433The [++opt] argument can be used to force the value of 'fileformat' ,
@@ -1066,6 +1069,7 @@ The names can be in upper- or lowercase.
10661069 If there are other tab pages and quitting the last
10671070 window in the current tab page the current tab page is
10681071 closed | tab-page | .
1072+ Triggers the | QuitPre | autocommand event.
10691073
10701074:conf[irm] q[uit] Quit, but give prompt when changes have been made, or
10711075 the last file in the argument list has not been
@@ -1215,21 +1219,21 @@ For versions of Vim where browsing is not supported, the command is executed
12151219unmodified.
12161220
12171221 *browsefilter*
1218- For MS Windows, you can modify the filters that are used in the browse dialog.
1219- By setting the g:browsefilter or b:browsefilter variables, you can change the
1220- filters globally or locally to the buffer. The variable is set to a string in
1221- the format "{filter label}\t{pattern} ;{pattern} \n" where {filter label} is the
1222- text that appears in the "Files of Type" comboBox, and {pattern} is the
1223- pattern which filters the filenames. Several patterns can be given, separated
1224- by ';'.
1222+ For MS Windows and GTK , you can modify the filters that are used in the browse
1223+ dialog. By setting the g:browsefilter or b:browsefilter variables, you can
1224+ change the filters globally or locally to the buffer. The variable is set to
1225+ a string in the format "{filter label}\t{pattern} ;{pattern} \n" where {filter
1226+ label} is the text that appears in the "Files of Type" comboBox, and {pattern}
1227+ is the pattern which filters the filenames. Several patterns can be given,
1228+ separated by ';'.
12251229
12261230For Motif the same format is used, but only the very first pattern is actually
12271231used (Motif only offers one pattern, but you can edit it).
12281232
12291233For example, to have only Vim files in the dialog, you could use the following
12301234command: >
12311235
1232- let g:browsefilter= "Vim Scripts\t*.vim\nVim Startup Files\t*vimrc\n"
1236+ let g:browsefilter = "Vim Scripts\t*.vim\nVim Startup Files\t*vimrc\n"
12331237
12341238 You can override the filter setting on a per-buffer basis by setting the
12351239b:browsefilter variable. You would most likely set b:browsefilter in a
@@ -1239,6 +1243,13 @@ difficult to start editing a file of a different type. To overcome this, you
12391243may want to add "All Files\t*.*\n" as the final filter, so that the user can
12401244still access any desired file.
12411245
1246+ To avoid setting browsefilter when Vim does not actually support it, you can
1247+ use has("browsefilter"): >
1248+
1249+ if has("browsefilter")
1250+ let g:browsefilter = "whatever"
1251+ endif
1252+
12421253==============================================================================
124312547. The current directory *current-directory*
12441255
0 commit comments