summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-08-08 10:59:17 +0000
committerBram Moolenaar <Bram@vim.org>2008-08-08 10:59:17 +0000
commit1b24e4b59901627fb6ac0303dd27b94f8bb2c396 (patch)
tree4bab71d94c65884f78990dceaa26e773ac36176a /runtime
parentdc9cf9cd6d48ad9c6e25427f958401adc4a913ac (diff)
downloadvim-1b24e4b59901627fb6ac0303dd27b94f8bb2c396.zip
updated for version 7.2c-002
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 8bb990a05..3e24133c3 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2832,11 +2832,13 @@ fnameescape({string}) *fnameescape()*
For most systems the characters escaped are
" \t\n*?[{`$\\%#'\"|!<". For systems where a backslash
appears in a filename, it depends on the value of 'isfname'.
+ A leading '+' and '>' is also escaped (special after |:edit|
+ and |:write|). And a "-" by itself (special after |:cd|).
Example: >
- :let fname = 'some str%nge|name'
+ :let fname = '+some str%nge|name'
:exe "edit " . fnameescape(fname)
< results in executing: >
- edit some\ str\%nge\|name
+ edit \+some\ str\%nge\|name
fnamemodify({fname}, {mods}) *fnamemodify()*
Modify file name {fname} according to {mods}. {mods} is a