comparison runtime/doc/eval.txt @ 1700:9e1cefec84dd v7.2c.002

updated for version 7.2c-002
author vimboss
date Fri, 08 Aug 2008 10:59:17 +0000
parents 9d74e2f433c0
children 5232b9862f23
comparison
equal deleted inserted replaced
1699:9d74e2f433c0 1700:9e1cefec84dd
2830 characters that have a special meaning, such as '%' and '|' 2830 characters that have a special meaning, such as '%' and '|'
2831 are escaped with a backslash. 2831 are escaped with a backslash.
2832 For most systems the characters escaped are 2832 For most systems the characters escaped are
2833 " \t\n*?[{`$\\%#'\"|!<". For systems where a backslash 2833 " \t\n*?[{`$\\%#'\"|!<". For systems where a backslash
2834 appears in a filename, it depends on the value of 'isfname'. 2834 appears in a filename, it depends on the value of 'isfname'.
2835 A leading '+' and '>' is also escaped (special after |:edit|
2836 and |:write|). And a "-" by itself (special after |:cd|).
2835 Example: > 2837 Example: >
2836 :let fname = 'some str%nge|name' 2838 :let fname = '+some str%nge|name'
2837 :exe "edit " . fnameescape(fname) 2839 :exe "edit " . fnameescape(fname)
2838 < results in executing: > 2840 < results in executing: >
2839 edit some\ str\%nge\|name 2841 edit \+some\ str\%nge\|name
2840 2842
2841 fnamemodify({fname}, {mods}) *fnamemodify()* 2843 fnamemodify({fname}, {mods}) *fnamemodify()*
2842 Modify file name {fname} according to {mods}. {mods} is a 2844 Modify file name {fname} according to {mods}. {mods} is a
2843 string of characters like it is used for file names on the 2845 string of characters like it is used for file names on the
2844 command line. See |filename-modifiers|. 2846 command line. See |filename-modifiers|.